I installed LXDE runit and was wondering about converting to pure openbox with slim as X11 starter.
Looking at the running apps I see that pulseaudio is started on behalf of the artix user, but I don't know which process starts it.
I don't see an artix user runsvdir and there is no /etc/runit/sv/pulseaudio folder.
So I am wondering who/what starts pulseaudio. In the past I have observed it can be started by something in the XDG folderie one of one of the ~/.config/autostart ~/.config/openbox/autostart, .config/lxsession/LXDE/autostart, /etc/xdg/autostart/pulseaudio.desktop etc etc.
I know I can always ensure it runs from an openbox-session started openbox, but I notice that sudo root is unable to use espeak so I assume pulseaudio is per user in the existing context.
I have only one set of speakers so why would I not run pulseaudio as a global service. I se that the arch wiki recommends the per user approach.
pulseaudio automagically starts itself. I believe on Arch they moved to starting pulseaudio via systemd sockets instead.
yes I think I knew/believed that. My question was really about how that's done. Looking in the /proc/<pid>/environ of the pulseaudio process leads me to believe that it was started via XDG.
From here https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ it seems it's possible to run as a systemwide service via a unix socket.