Add support for USE="elogind" to sddm. This USE flag should add pam_elogind.so as an optional session module to services/sddm-greeter.pam and substitute the usage of /sbin/shutdown with /usr/bin/loginctl. Further, if elogind is used, sddm must not depend on consolekit and stop using ck-launch-session.
Created attachment 453036 [details] sddm-0.14.0-r3.ebuild This ebuild has USE="elogind" added and patches sddm to use elogind as a substitution for systemd-login.
Created attachment 453038 [details, diff] Patch to enable elogind support This patch does the following: a) Add USE_ELOGIND and libelogind detection to CMakeLists.txt b) Add pam_elogind.so to services/sddm-greeter.pam
Is there an upstream bug available? If not, please create one.
(In reply to Manuel Rüger from comment #3) > Is there an upstream bug available? If not, please create one. Not yet, as I am not entirely sure whether my patch is complete. Once I am certain (at least mostly) I'll propose this patch upstream. And currently I drop back to sddm when I try to power off or reboot from within Plasma. I have to find out why.
Proposed my patch upstream at https://github.com/sddm/sddm/issues/741 for further review.
*meh* everything must be a pull request these days, even if it is such a small thing... See: https://github.com/sddm/sddm/pull/746
@Michael : The pull request is in but is not yet merged. Generally sddm works fine with elogind support as it is now, so you might want to add it to the KDE Overlay for wider testing? @Manuel : Would you be okay with that?
This seems to work fine for me so far.
Thanks, fixed in git. Sorry, somehow I accidentally blew away your attribution while rebasing. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d19f8d9400c010a9878a88e888fd5163042ff348
Update on the PR: davidedmundson merged commit 59ad0f7 into sddm:develop *yay*