LXSession-logout: how can I remove some options?

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Pjotr
Posts: 1
Joined: Mon Mar 07, 2011 4:59 pm

LXSession-logout: how can I remove some options?

Postby Pjotr » Mon Mar 07, 2011 5:05 pm

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. :)

poedel
Posts: 3
Joined: Sun Oct 24, 2010 7:02 pm

Re: LXSession-logout: how can I remove some options?

Postby poedel » Wed Apr 27, 2011 3:06 pm

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


Return to “LXSession (Lite)”

Who is online

Users browsing this forum: No registered users and 1 guest