preferences - LogoutCommand="..." hides Reboot and Shutdown options
George Hansper <[email protected]> Thu, 24 Feb 2011 11:46:32 +1100
| Newsgroups | gmane.comp.window-managers.icewm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Whenever I define, in the preferences files /etc/icewm/preferences
LogoutCommand="killall icewm-session"
in the preferences file, it hides the Reboot and Shutdown options.
This is due to a piece of logic in wmdialog.cc
bool canShutdown(bool reboot) {
if (!reboot)
if (shutdownCommand == 0 || shutdownCommand[0] == 0)
return false;
if (reboot)
if (rebootCommand == 0 || rebootCommand[0] == 0)
return false;
if (logoutCommand && logoutCommand[0])
return false;
#ifdef CONFIG_SESSION
if (smapp->haveSessionManager())
return false;
#endif
return true;
}
What is this trying to achieve? Should it be there at all?
If I don't want the Reboot or Shutdown options, I can simply leave them undefined or set to ""
Regards,
George Hansper
________________________________
This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Icewm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icewm-devel