Command-Line, 11.10, Shutdown, Dialog – Command to Open Shutdown Dialog

11.10command linedialogshutdown

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

Best Answer

/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

Related Question