Comment 7 for bug 1201180

Revision history for this message
Martin Pitt (pitti) wrote : Re: Pressing power button turns off the PC ignoring the presence of another session manager

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)