You are not logged in.

#1 2016-03-20 21:17:40

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

[Solved] [Gnome] Command for invoking shutdown/restart dialog?

Is it possible to invoke the restart/shutdown dialog from within a terminal? I've searched around a bit and on older versions of Gnome there was the command "gnome-session-save --shutdown-dialog". Obviously, that command isn't available in recent versions. How can I find out the command for that?

Thanks!

Last edited by Thorsten Reinbold (2016-03-21 11:26:53)

Offline

#2 2016-03-21 01:04:49

mrlamud
Member
Registered: 2014-09-27
Posts: 105

Re: [Solved] [Gnome] Command for invoking shutdown/restart dialog?

Offline

#3 2016-03-21 01:54:36

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] [Gnome] Command for invoking shutdown/restart dialog?

This not about privilges. I just want to know how to invoke the dialog window per command.

Offline

#4 2016-03-21 02:13:36

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] [Gnome] Command for invoking shutdown/restart dialog?

$ gnome-session-quit {--logout,--power-off,--reboot}

Offline

#5 2016-03-21 11:26:35

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: [Solved] [Gnome] Command for invoking shutdown/restart dialog?

ooo wrote:
$ gnome-session-quit {--logout,--power-off,--reboot}

Damn, you're right. I thought that the "gnome-session-quit"-command would immediatly do what you tell it, so I didn't even try. Thanks! smile

Offline

Board footer

Powered by FluxBB