* Automatically start VBoxClient-all when the X session starts. This

allows seamless windows, resizing of the desktop, cut and paster,
  etc.

svn path=/nixos/trunk/; revision=33131
This commit is contained in:
Eelco Dolstra 2012-03-16 01:29:51 +00:00
parent 4adc99f9a5
commit 53bd25c7fa
2 changed files with 17 additions and 0 deletions

View File

@ -80,6 +80,8 @@ let
source /etc/profile
${cfg.displayManager.sessionCommands}
# Allow the user to setup a custom session type.
if test -x ~/.xsession; then
exec ~/.xsession
@ -164,6 +166,16 @@ in
apply = toString;
};
sessionCommands = mkOption {
default = "";
example =
''
xmessage "Hello World!" &
'';
type = types.string;
description = "Shell commands executed just before the window or desktop manager is started.";
};
session = mkOption {
default = [];
example = [

View File

@ -60,6 +60,11 @@ in
InputDevice "VBoxMouse"
'';
services.xserver.displayManager.sessionCommands =
''
PATH=${makeSearchPath "bin" [ pkgs.gnugrep pkgs.which pkgs.xorg.xorgserver ]}:$PATH \
${kernel.virtualboxGuestAdditions}/bin/VBoxClient-all
'';
};
}