[pulseaudio-discuss] [PATCH] launch: avoid autostarting pulseaudio systemd units for root

Tanu Kaskinen tanuk at iki.fi
Sat Sep 9 13:41:07 UTC 2017


On Thu, 2017-09-07 at 10:06 -0300, Felipe Sateler wrote:
> On Thu, Sep 7, 2017 at 9:01 AM, Tanu Kaskinen <tanuk at iki.fi> wrote:
> 
> > On Wed, 2017-09-06 at 19:55 -0300, Felipe Sateler wrote:
> > > --- a/src/daemon/systemd/user/pulseaudio.socket
> > > +++ b/src/daemon/systemd/user/pulseaudio.socket
> > > @@ -1,5 +1,6 @@
> > >  [Unit]
> > >  Description=Sound System
> > > +ConditionUser=!root
> > > 
> > >  [Socket]
> > >  Priority=6
> > 
> > What happens if these units are used with older systemd versions? Is
> > the unrecognized option just ignored?
> 
> Yes. Systemd will emit a warning like this though:
> 
> systemd[23564]: [/home/felipe/.config/systemd/user/test.service:2] Unknown
> lvalue 'ConditionUser' in section 'Unit'

Ok, good. Thanks for writing the patch, and also for adding the feature
in systemd! I applied the patch now.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list