PDA

View Full Version : [SOLVED] [SOLVED] Command Line For Shutdown GUI



jdorenbush
December 7th, 2008, 10:50 PM
I am trying to figure out the command line for the Shut-down/Kill GUI.


/usr/bin/gnome-session-save --gui --kill

That command line only brings up the Log Off and Switch User dialogue. I am trying to get the dialogue that brings up Shut Down, Restart, Suspend, and Hibernate.

hictio
December 7th, 2008, 11:04 PM
You have to type:



sudo /etc/init.d/gdm stop (ENTER)


Replace stop with start to enable again, this won't survive a reboot, if you want to do that, that is disable the GUI for a while, type this:



update-rc.d -f gdm remove (ENTER)


To re-enable, type this:



update-rc.d -f gdm defaults (ENTER)

jdorenbush
December 7th, 2008, 11:47 PM
I am actually trying to apply it to an Applet in Avant.

Its actually basically what this guy asked for, but he didn't get much help

http://www.linuxforums.org/forum/ubuntu-help/134836-shut-down-menu-command.html

hictio
December 8th, 2008, 06:00 AM
I am actually trying to apply it to an Applet in Avant.

Its actually basically what this guy asked for, but he didn't get much help

http://www.linuxforums.org/forum/ubuntu-help/134836-shut-down-menu-command.html

I don't understand... The reply for what he/she asked its answered on the second post of that thread.

jdorenbush
December 8th, 2008, 08:43 AM
I am trying to use a shutdown icon in Avant Window Navigator as an Applet. Not in the ubuntu Panel.

kawaji
December 9th, 2008, 12:21 AM
gnome-session-save --shutdown-dialog

crazyness003
December 9th, 2008, 12:23 AM
gnome-session-save --shutdown-dialog
yup. that works
(crazyness approved!)

jdorenbush
December 9th, 2008, 12:52 AM
gnome-session-save --shutdown-dialog

Thank you!

crazyness003
December 9th, 2008, 02:36 AM
please mark as solved in the thread tools. It will help other seeking the same answers; seek the answers...quicklier

jdorenbush
December 9th, 2008, 05:37 AM
please mark as solved in the thread tools. It will help other seeking the same answers; seek the answers...quicklier

I meant to do that, but I totally forgot. It is already marked as Solved though - maybe an admin did it?

crazyness003
December 9th, 2008, 06:01 AM
I meant to do that, but I totally forgot. It is already marked as Solved though - maybe an admin did it?
its cool. dont think im pestering you, its just polite to let everyone know you fixed it.
"sharing is caring and it can be more useful than windows"

glotz
December 9th, 2008, 06:40 AM
$ gnome-session-save --shutdown-dialog
Unknown option --shutdown-dialog
Run 'gnome-session-save --help' to see a full list of available command line options.

crazyness003
December 10th, 2008, 06:07 PM
i think this only works for interpid. hardy still uses the old school one (dont remember what it was. maybe: gnome-session-save --gui --kill )

glotz
December 11th, 2008, 03:08 PM
i think this only works for interpid. hardy still uses the old school one (dont remember what it was. maybe: gnome-session-save --gui --kill )Confirmed, thanks.