Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:

enter image description here

share|improve this question
up vote 15 down vote accepted

/usr/lib/indicator-session/gtk-logout-helper can be used to open the following dialogs:

  • Log Out (/usr/lib/indicator-session/gtk-logout-helper --logout)

    enter image description here

  • Restart (/usr/lib/indicator-session/gtk-logout-helper --restart)

    enter image description here

  • Shutdown (/usr/lib/indicator-session/gtk-logout-helper --shutdown)

    enter image description here

share|improve this answer

To prompt only the shutdown/restart dialog, run the following command:

gnome-session-quit --reboot

Details on binding this on Ctrl-Alt-Del here.

share|improve this answer

In Gnome Shell if I try /usr/lib/indicator-session/gtk-logout-helper --shutdown I obtain the dialog in the screenshot you provided, but when I click on Shut Down I receive another dialog (similar to the first). Only after a second confirm my system shuts down.

This method reaches the second dialog directly via command line?

gnome-session-quit --power-off
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.