GNOME Bugzilla – Bug 346125
logout-shutdown from command line and timer
Last modified: 2006-11-11 12:23:05 UTC
In most configurations users can shut the machine down, using the gnome menu. This lacks a command line interface. I want to be able to open a terminal and do: wget htt:p//a_big_file; gnome-logout --shutdown or something similar. Il will be useful also using sleep xxx && gnome-logout --shutdown As of now you have to be root to do that, and it closes the session badly. I do shut my computer down automatically very often and this is the major annoyance I have in gnome. I also suggest a small applet or utility to implement a shutdown timer. It will also be useful to integrate shutdown capability on some other applications, e.g. "shutdown when tranfer/encoding/burning/scanning is finished. KDE has a kshutdown program, gnome should have something similar too. However I cannot stress to much the need for a command line interface to session closing and shutdown. So it is better to create a command line tool and make programs that integrate shutdown capabilities use that command, instead of the magic way gnome uses now. I have some coding skills, so if there is an API ready for doing this I'd like to be pointed at. However I will not able to write something to ready to integrate in gnome, but I can give you something to start.
you do not need to be root. use e.g. killall gnome-session it does not do a graceful shutdown tough, as far as I can tell.
killall gnome-session does not provide a way to choose between logout, shutdown, hibernation, reboot....
Sure Feel free to do some work. Eventually it will be proposed as a Gnome module and included in the Gnome module set.
I know very little of gtk-gnome coding, so I need at least to be pointed to some API with methods to manage the logout or to be shown the code responsible for the current logout implementation. But both is better.
please talk to the #gnome-love IRC channel or better, point your questions at the gnome-love mailing list http://mail.gnome.org/mailman/listinfo/gnome-love thank you for your efforts
Looks like a dupe of bug#118091.
yes, the idea of bug #118091 provides the same purpose. thanks for spotting this Josselin. *** This bug has been marked as a duplicate of 118091 ***