pulseaudio/pulseaudio-autostart.patch
Rex Dieter 9958c33691 fix autostart.patch (#2001664)
Though I'm not sure this patch should be carried any longer, it
was only ever a stop-gap measure when initial autospawn behavior
was new (and sometimes quirky/unreliable).
2021-09-10 13:59:48 -05:00

15 lines
427 B
Diff

diff --git a/src/daemon/start-pulseaudio-x11.in b/src/daemon/start-pulseaudio-x11.in
index 722a639c0..7cdf14e4d 100755
--- a/src/daemon/start-pulseaudio-x11.in
+++ b/src/daemon/start-pulseaudio-x11.in
@@ -17,6 +17,9 @@
set -e
+# probe to test if autospawn works, else resort to starting manually
+@PACTL_BINARY@ info > /dev/null 2>&1 || /usr/bin/pulseaudio --start "$@"
+
if [ -n "$1" ] ; then
case $1 in
stop)