x11 session: Don't start pulseaudio if it already is running system-wide
This commit is contained in:
parent
cd0da98b03
commit
462e4255fa
@ -75,8 +75,10 @@ let
|
|||||||
if test "''${1:0:1}" = /; then eval exec "$1"; fi
|
if test "''${1:0:1}" = /; then eval exec "$1"; fi
|
||||||
|
|
||||||
# Start PulseAudio if enabled.
|
# Start PulseAudio if enabled.
|
||||||
${optionalString config.hardware.pulseaudio.enable ''
|
${optionalString (config.hardware.pulseaudio.enable) ''
|
||||||
${pkgs.pulseaudio}/bin/pulseaudio --start
|
${optionalString (!config.hardware.pulseaudio.systemWide)
|
||||||
|
"${pkgs.pulseaudio}/bin/pulseaudio --start"
|
||||||
|
}
|
||||||
|
|
||||||
# Publish access credentials in the root window.
|
# Publish access credentials in the root window.
|
||||||
${pkgs.pulseaudio}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
|
${pkgs.pulseaudio}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
|
||||||
|
Loading…
Reference in New Issue
Block a user