Created attachment 127917 [details] [review] Enable elogind support in PolicyKit Currently configure.ac allows the usage of either libsystemd-login or ConsoleKit for session tracking. The elogind project (https://github.com/wingo/elogind) provides systemd-logind as a stand-alone daemon. To allow users of systems not run by the full systemd suite, for whatever reason there might be, to at least be able to not have to use ConsoleKit for session tracking, an integration of elogind usage into PolicyKit would be very helpfull. As elogind provides the same interface as systemd-login, integration is easy. Please see the attached patch. The patch : a) adds --enable-libelogind to configure.ac, b) adds LIBELOGIND_CFLAGS and _LIBS to src/polkitbackend/Makefile.am and src/polkit/Makefile.am and c) adds an include <elogind/sd-login.h> to src/polkitbackend/polkitbackendjsauthority.c, src/polkitbackend/polkitbackendsessionmonitor-systemd.c and src/polkit/polkitunixsession-systemd.c if --enable-libelogind was issued by the user. No other changes where needed.
do you mind redoing this patch so that it only touches configure.ac ? elogind is a drop in replacement for logind these days
Created attachment 138447 [details] [review] Enable elogind support in PolicyKit (configure.ac-only version) Thank you for your answer. You are right of course. I made elogind into a drop-in replacement, so reluctant upstreams can use it as if it was libsystemd-login, by only touching their configuration system. I hope this new patch is acceptable, at least as a basis. Basically it just makes the system to "believe" it was using libsystemd-login, while it is really using libelogind. ... I do hope though, that this won't take another 16 months... ;-)
i'm planning to do a release soon, so will make sure this lands first.
Pushing to master now. will do a release shortly
Thank you very very much!
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.