You are not logged in.

#1 2011-07-18 16:55:30

Camus
Member
Registered: 2011-07-03
Posts: 71

Gnome 3 - command for shutdown dialog (need for keyboard shortcut)

I'd like to create a keyboard shortcut for shutdown dialog; it's the dialog that appears when press your username (top-right corner) and then select "Shut down..." option. There was "gnome-session-save --shutdown-dialog" or something similar in Gnome 2 (or so it seems by reading forum posts), but the same command doesn't exist in Gnome 3.

I'm not rebooting or shutting down my OS a lot, but when I do, I'm automatically trying to press some keyboard shortcut.

Offline

#2 2011-07-18 20:27:21

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

Re: Gnome 3 - command for shutdown dialog (need for keyboard shortcut)

Hi !
Try gnome-session-quit :

gnome-session-quit --power-off

I believe in a world I can and do understand. A rational universe, explained through rational means.

Offline

#3 2011-07-18 20:29:52

Camus
Member
Registered: 2011-07-03
Posts: 71

Re: Gnome 3 - command for shutdown dialog (need for keyboard shortcut)

I started digging around more and found this option in System Settings/Power: "When the power button is pressed: Ask me". But, it doesn't work for me, because OS doesn't detect power button on my thinkpad. So it seems that I have to install acpid, but I still need to know the command for Gnome's shutdown dialog.

EDIT:

LeCrayonVert wrote:

Hi !
Try gnome-session-quit :

gnome-session-quit --power-off

Thanks, that works! I didn't see your comment before I posted mine.

Last edited by Camus (2011-07-18 20:31:19)

Offline

Board footer

Powered by FluxBB