Re: A command to quit IceWM nicely and shut down
Olive <[email protected]> Wed, 9 Mar 2011 22:41:59 +0100
| Newsgroups | gmane.comp.window-managers.icewm.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 06 Jul 2010 08:12:50 +0200 Cassian Braconnnier <[email protected]> wrote: > Le 06/07/2010 00:07, treah blade a écrit : > > -- treah blade <[email protected]> There is one thats built > > into the icewm system you just need to enable it in the > > configuration file located in your home directory and have shutdown > > and sudo availiable. > > -- treah blade <[email protected]> There is one thats built into > the icewm system you just need to enable it in the configuration file > located in your home directory and have shutdown and sudo availiable. > ____ > > What I need is a command line which does exactly the same as > clicking on the shutdown button from within IceWM. Something like > this command for KDE4 > qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout > 0 2 2 or perhaps like this one for GNOME : > gnome-session-save --shutdown-dialog > That is, a command which could be used from within a script or a > program and not requiring any "special" parametrization of the > Desktop. I am not sure I fully understand your answer, anyway... > The command that is issued by clicking the shutdown button of icewm is configurable in the preference file; it is disabled by default. The menu item do nothing more than call the command; so you could call it by hand (mine is "sudo shutdown -h now" with sudo configured to not ask a password for this command; read the man page of shutdown for further details). If you want to just logout instead of shutdown; simply kill icewm (pkill icewm). Remember that icewm is just a window manager, it does not support session management and other advanced features of desktop like KDE. Olive ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d