launch: avoid autostarting pulseaudio systemd units for root
authorFelipe Sateler <fsateler@debian.org>
Wed, 6 Sep 2017 22:55:56 +0000 (19:55 -0300)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 9 Sep 2017 13:37:39 +0000 (16:37 +0300)
commit24928d6b6fa1cde3312bcf63e4e14d7003aadc69
treeb3ed149a82289e9eb9ec05cdc91b6035026a69ce
parent675a407a0eb46aa7a24b4deb0343208aad4af321
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.
src/daemon/systemd/user/pulseaudio.service.in
src/daemon/systemd/user/pulseaudio.socket