mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 12:52:41 +03:00
* 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:
parent
4adc99f9a5
commit
53bd25c7fa
@ -80,6 +80,8 @@ let
|
|||||||
|
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
||||||
|
${cfg.displayManager.sessionCommands}
|
||||||
|
|
||||||
# Allow the user to setup a custom session type.
|
# Allow the user to setup a custom session type.
|
||||||
if test -x ~/.xsession; then
|
if test -x ~/.xsession; then
|
||||||
exec ~/.xsession
|
exec ~/.xsession
|
||||||
@ -164,6 +166,16 @@ in
|
|||||||
apply = toString;
|
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 {
|
session = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [
|
example = [
|
||||||
|
@ -60,6 +60,11 @@ in
|
|||||||
InputDevice "VBoxMouse"
|
InputDevice "VBoxMouse"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
services.xserver.displayManager.sessionCommands =
|
||||||
|
''
|
||||||
|
PATH=${makeSearchPath "bin" [ pkgs.gnugrep pkgs.which pkgs.xorg.xorgserver ]}:$PATH \
|
||||||
|
${kernel.virtualboxGuestAdditions}/bin/VBoxClient-all
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user