It seems gnome-session got fixed for this now. When I press the power button, I now get the usual dialog that asks you what to do (shutdown/reboot/etc.)
I'll add a task for kde-workspace as apparently it's still not working under KDE. I. e. the KDE session needs to inhibit logind's power button handling if it wants to handle the power button itself, similar to what gnome-session is doing in gsm_systemd_add_inhibitor() (https://git.gnome.org/browse/gnome-session/tree/gnome-session/gsm- systemd.c#n750) ** Changed in: gnome-session (Ubuntu) Status: Triaged => Fix Released ** Also affects: kde-workspace (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs