pulseaudio/src/daemon/systemd/user/pulseaudio.socket
Felipe Sateler 24928d6b6f launch: avoid autostarting pulseaudio systemd units for root
The autospawn mechanism already had a root-autospawn protection mechanism. When
using systemd that was lost. Systemd 234 has a mechanism to conditionalize unit starting
on the running user, so lets do that to protect against root autospawning.
2017-09-09 16:37:39 +03:00

11 lines
147 B
SYSTEMD

[Unit]
Description=Sound System
ConditionUser=!root
[Socket]
Priority=6
Backlog=5
ListenStream=%t/pulse/native
[Install]
WantedBy=sockets.target