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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux