[pulseaudio-discuss] [PATCH 7/8] launch: Disable autospawn by default when systemd daemon support is enabled.

Colin Guthrie gmane at colin.guthr.ie
Mon Nov 10 10:24:25 PST 2014


Felipe Sateler wrote on 05/11/14 16:19:
>> > If you wanted to go really far, you could also hack PA source to check
>> > for systemd as an init (just checking sd_booted() I guess) and make the
>> > default based on that - while it's not the same as using the user
>> > daemon, it's 99% accurate IMO. It would make the default value shown in
>> > the config file (but commented out) sometimes wrong, but that's mostly
>> > cosmetic.
>> >
>> > We could technically just do this upstream. I don't think I'd be against
>> > such a change if no-one else complains.
> I had thought of that. I think this is a reasonable compromise:
> business as usual for the no-systemd crowd, and improved support for
> the rest.
> 
> I will try to cook something up along the lines of your suggestion (I
> don't think you can assign a method call result to a const struct
> field...). I'll let you know if I have something that works.

Ahh yes, it would indeed fail to compile. We probably would need more
linking on libpulseclient.so too to add in the relevant sd libraries if
enabled.

Good luck hacking that and as I said, I don't think there would be any
major objection to including it upstream.

All the best

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the pulseaudio-discuss mailing list