Page 1 of 1
LXSession-logout: how can I remove some options?
Posted: Mon Mar 07, 2011 5:05 pm
by Pjotr
I'm using Linux Mint 9 LXDE. How can I remove the sleep and hibernate options from the logout menu?
/usr/bin/lxsession-logout is an executable binary and not a script, so I don't know how to adapt it....
Any help will be greatly appreciated.
Re: LXSession-logout: how can I remove some options?
Posted: Wed Apr 27, 2011 3:06 pm
by poedel
Code: Select all
poedel@pcslap /usr/share/polkit-1/actions $ cat org.freedesktop.upower.policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>The UPower Project</vendor>
<vendor_url>http://upower.freedesktop.org/</vendor_url>
<icon_name>system-suspend</icon_name>
<action id="org.freedesktop.upower.suspend">
<description>Suspend the system</description>
<message>Authentication is required to suspend the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.upower.hibernate">
<description>Hibernate the system</description>
<message>Authentication is required to hibernate the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
this is code from gentoo, but if mint is like that you could try to allow active -> no