Red Hat Bugzilla – Bug 497214
pulseaudio-module-x11 shouldn't autostart pulseaudio daemon if PULSE_SERVER is set
Last modified: 2009-05-06 19:29:09 EDT
pulseaudio-module-x11 contains /etc/xdg/autostart/pulseaudio.desktop which autostarts /usr/bin/start-pulseaudio-x11 during a desktop login.
Remote desktop sessions might set PULSE_SERVER to direct the desktop sound to another host, like:
In this case, the pulseaudio daemon launched by the user desktop is not actually used. This can actually cause problems for multi-user systems because these unused pulseaudio and /usr/libexec/pulse/gconf-helper processes often fail to die after logout. Hundreds of them pile up over time bogging down system resources.
--- /usr/bin/start-pulseaudio-x11.orig 2009-04-22 15:42:00.281756540 -0400
+++ /usr/bin/start-pulseaudio-x11 2009-04-22 15:45:04.465837091 -0400
@@ -19,6 +19,9 @@
+# Exit without running pulseaudio daemon if this is a remote desktop session
+[ -n "$PULSE_SERVER" ] && exit 0
/usr/bin/pulseaudio --start "$@"
if [ x"$DISPLAY" != x ] ; then
This patch seems to DTRT, preventing the unused pulseaudio daemon from launching, and no more leftover processes after user logout.
Fixed upstream. Feel free to patch the Fedora packages.
Seems you patched the Fedora packages already, closing.
pulseaudio-0.9.14-3.fc10 has been submitted as an update for Fedora 10.
pulseaudio-0.9.14-3.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.