forked from mirrors/nixpkgs
* Move PulseAudio initialisation below the re-exec to prevent it from
being started twice. svn path=/nixos/trunk/; revision=27968
This commit is contained in:
parent
3fdc209978
commit
3b374ea326
|
@ -57,6 +57,9 @@ let
|
|||
exec ${pkgs.consolekit}/bin/ck-launch-session "$0" "$sessionType"
|
||||
fi
|
||||
|
||||
# Handle being called by kdm.
|
||||
if test "''${1:0:1}" = /; then eval exec "$1"; fi
|
||||
|
||||
# Start PulseAudio if enabled.
|
||||
${optionalString config.hardware.pulseaudio.enable ''
|
||||
${pkgs.pulseaudio}/bin/pulseaudio --start
|
||||
|
@ -68,9 +71,6 @@ let
|
|||
${pkgs.pulseaudio}/bin/pactl load-module module-device-manager "do_routing=1"
|
||||
''}
|
||||
|
||||
# Handle being called by kdm.
|
||||
if test "''${1:0:1}" = /; then eval exec "$1"; fi
|
||||
|
||||
# Load X defaults.
|
||||
if test -e ~/.Xdefaults; then
|
||||
${xorg.xrdb}/bin/xrdb -merge ~/.Xdefaults
|
||||
|
|
Loading…
Reference in a new issue