Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#52798 - [pulseaudio] Insinuates itself into X11 sessions via /etc/xdg/autostart

Attached to Project: Arch Linux
Opened by Jeremy (loserMcloser) - Tuesday, 31 January 2017, 20:55 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 02 February 2017, 04:48 GMT
Task Type General Gripe
Category Packages: Extra
Status Assigned
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No



Why does pulseaudio add a .desktop file to /etc/xdg/autostart ?

Who says that just because some dependency caused pulseaudio to be installed, that I want pulseaudio running every time I start up an X session?

This seems to run counter to the following principle in the Arch Linux entry of the wiki:
"It does not add automation features such as enabling a service simply because the package was installed."

Additional info:
* package version(s): pulseaudio-10.0-2

Steps to reproduce:
Start an X session in an XDG-compliant window manager or desktop environment. Open a terminal.
> ps -u $USERNAME | grep pulseaudio
This task depends upon

Comment by Doug Newgard (Scimmia) - Thursday, 02 February 2017, 04:48 GMT
Things that depend on pulseaudio generally DO require that it's running. It's also set up with a systemd --user socket.
Comment by Jeremy (loserMcloser) - Thursday, 02 February 2017, 22:48 GMT
(a) Things that depend on pulseaudio are not necessarily going to be run in every X session.

(b) If there's a systemd socket set up, won't systemd then start up pulseaudio when some program that depends on it tries to connect to the socket? Sounds like the systemd socket is enough, why does there also need to be the .desktop file in /etc/xdg/autostart?

(c) By the same logic that put the .desktop file in /etc/xdg/autostart, is pulseaudio eventually going to be forced upon users in the console too? What if someone starts up a pulseaudio-dependent command-line audio program when pulseaudio is not running? The horror!