Version: unspecified (using KDE 4.8.0)
The shutdown/reboot options in the KMenu doesn't turn off/reboot the system anymore but exit the session and back to KDM.
This happens after the update to systemd version 41 and 42.
This is a KDE bug because the user which reported us the bug (see https://bugs.archlinux.org/task/28386) tried XFCE and everything is fine there.
I didn't test XFCE (I'll do), but I cannot shutdown/reboot my system anymore too.
Any info you need please ask.
Steps to Reproduce:
Use systemd. Try to shutdown/reboot your system.
The session is closed and you are back to KDM.
The system turn off/reboot.
*** Bug 294376 has been marked as a duplicate of this bug. ***
I can confirm that this indeed happens with the new systemd and KDE 4.8.0
Seems to be a pam issue (I'll attach a patch workaround we're testing in fedora)
Created attachment 69593 [details]
fedora pam patch being tested
See also downstream bug http://bugzilla.redhat.com/796969
(In reply to comment #4)
> Created attachment 69593 [details]
> fedora pam patch being tested
> See also downstream bug http://bugzilla.redhat.com/796969
All distribs that uses recent systemd have this bug.
It would be nice if this patch is incorporated in kdm, after a proper review by kdm devs.
Rex, please, could you open a review request for this patch to the kde review board?
We will when it's gotten more testing and more confident that it's the right fix. You're welcome to help by testing it out yourself, or help provide feedback (if you understand the code).
I've tested the attached patch and it works for me. I haven't seen any side effects yet.
As my colleague Luc Menut pointed out on our downstream bug (https://bugs.mageia.org/show_bug.cgi?id=4605) this has now been fixed at the systemd side:
This recent commit in systemd "logind: close FIFO before ending sessions
fixes this bug with KDE/KDM.
I tested our current systemd patched with the logind FIFO patch + our kdebase4-workspace without the fedora patch, and shutdown and reboot work fine.
From my previous reading of his description, Rex's patch could very well still be valid, but it seems like it's not specifically needed for proper operation now.
Fixed in systemd with this commit http://cgit.freedesktop.org/systemd/systemd/commit/?id=75c8e3cffd7da8eede614cf61384957af2c82a29