Bug 62593

Summary: systemd/consolekit: checks for systemd, not for logind
Product: PulseAudio Reporter: Martin Pitt <martin.pitt>
Component: modulesAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: minor    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: consolekit, systemd: Check for logind, not for systemd

Description Martin Pitt 2013-03-21 13:42:04 UTC
The systemd module talks to logind, but actually check for systemd with sd_booted(). The consolekit module does the reverse.

It is possible to build systemd without logind, in which case sd_booted() would still succeed(), but the various sd_pid_get_* would fail.

For running systemd init without logind, or for running logind without systemd init we need to change the check to test for logind.

For details, see [1] if you are interested.

[1] https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
Comment 1 Martin Pitt 2013-03-21 13:44:19 UTC
Created attachment 76863 [details] [review]
consolekit, systemd: Check for logind, not for systemd
Comment 2 Tanu Kaskinen 2013-03-29 11:34:43 UTC
Thanks! I applied the patch to the master branch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.