After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346125 - logout-shutdown from command line and timer
logout-shutdown from command line and timer
Status: RESOLVED DUPLICATE of bug 118091
Product: gnome-session
Classification: Core
Component: gnome-session
2.12.x
Other All
: Normal enhancement
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-28 17:31 UTC by Andrea Ratto
Modified: 2006-11-11 12:23 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Andrea Ratto 2006-06-28 17:31:40 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.
Comment 1 Christian Kirbach 2006-06-28 22:32:40 UTC
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.
Comment 2 Andrea Ratto 2006-06-29 05:49:18 UTC
killall gnome-session does not provide a way to choose between logout, shutdown, hibernation, reboot....
Comment 3 Christian Kirbach 2006-06-29 10:11:12 UTC
Sure

Feel free to do some work. Eventually it will be proposed as a Gnome module and included in the Gnome module set.
Comment 4 Andrea Ratto 2006-06-29 16:47:48 UTC
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.
Comment 5 Christian Kirbach 2006-07-08 11:02:08 UTC
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
Comment 6 Josselin Mouette 2006-11-11 07:59:16 UTC
Looks like a dupe of bug#118091.
Comment 7 Christian Kirbach 2006-11-11 12:23:05 UTC
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 ***