Created attachment 97424 [details] Wait until x session ends and then kill pulseaudio When start-pulseaudio-* starts pulseaudio, it doesn't kill it on x session end, causing log annoyances and possibly race conditions with alsa shutdown (alsa may mute devices before pulseaudio quits, so pulseaudio stores the wrong volume). Attached is a patch applied in debian to mitigate such issues. Unfortunately, this adds a dependency on xprop. PS: another extra improvement would be to avoid starting the daemon if it is already running, and thus avoiding a "daemon already running" log message.
I just saw that Balint had already posted a version of the patch to the list, which is the correct way to do this. Sorry for the noise.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.