LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   remove "Suspend" and "Hibernate" from the "Shut Down" applet (https://www.linuxquestions.org/questions/debian-26/remove-suspend-and-hibernate-from-the-shut-down-applet-877889/)

cccc 04-29-2011 02:53 PM

remove "Suspend" and "Hibernate" from the "Shut Down" applet
 
Hi

I have squeeze with Gnome.
Howto remove/disable "Suspend" and "Hibernate" from the "Shut Down" applet, so I have just Restart, Cancel and Shutdown?

cccc 04-29-2011 03:16 PM

I've found a solution.

There are two sections in this file:

/usr/share/polkit-1/actions/org.freedesktop.upower.policy

the first for suspend and the second for hibernate.

Near the end of each section will be a line with:
Code:

<allow_active>yes</allow_active>
It should be changed from “yes” to “no” to disable hibernate/suspend:
Code:

<allow_active>no</allow_active>

cccc 05-02-2011 10:05 AM

BTW knows someone howto remove "Restart"?


All times are GMT -5. The time now is 08:44 PM.