1

When I hit the power button on my laptop (Ubuntu 14.04.1 without any modifications), I receive a pop window saying

Goodbye, what would you like to do? Lock Suspend Restart Shutdown

How can I get this screen through command-line or a script?

Addition: The linked question mentions gnome-session-quit but this does not produce the overlay specified above: the accepted answer performs the desired behavior.

jII
  • 1,102

1 Answers1

3

Does this do what you expect?

gnome-session-quit --power-off

Alternatively there are some other options to gnome-session-quit.

thomasrutter
  • 37,804