1. Boot laptop 2. When at gdm, press "Power button" 3. Get dialogue telling me: "Log out of this system now? You are currently logged in as "gdm" You will be automatically logged out in XX seconds". [Switch user] [Log out] [Cancel] "
Another interesting point to notice is that if I do this while another session is running, the dialog pops up in all sessions.
The dialog comes from gnome-session
gnome-settings-daemon handles the power button, and currently calls gnome-session-save --kill I wonder if thats a leftover from when we had a single dialog that also had shutdown in it. Nowadays we have a separate shutdown dialog, and we should probably call gnome-session-save --shutdown-dialog instead ?
I've fixed gnome-settings-daemon to call gnome-session-save --shutdown-dialog, but it turns out that currently, gnome-power-manager handles the key and causes the logout dialog to be displayed. I hear that the key handling is going to move to X very soon, though.
This was fixed in gnome-power-manager to bring up the shutdown dialog.