You are not logged in.

#1 2013-04-18 10:04:52

forkboy
Member
From: Blackpool, England
Registered: 2005-09-03
Posts: 74

[solved] Remove hibernate and standby from KDE menu

I used to be able to disable hibernate and standby, and the options would be removed from the KDE menu, by editing /usr/share/polkit-1/actions/org.freedesktop.upower.policy.  This doesn't work anymore, I'm presuming because of systemd, is there any other way?

Last edited by forkboy (2013-04-20 13:29:08)

Offline

#2 2013-04-18 19:58:38

vassie
Member
Registered: 2006-02-05
Posts: 31

Re: [solved] Remove hibernate and standby from KDE menu

I would be very interested to know how to do this, I have been trying to remove hibernate from the KDE menu for days now, like you said, it would appear that systemd does not take any notice of the polkit polices.

Are you using KDM or LightDM?

Offline

#3 2013-04-19 09:07:39

stressat
Member
From: Romania
Registered: 2010-10-10
Posts: 73
Website

Re: [solved] Remove hibernate and standby from KDE menu

Offline

#4 2013-04-19 11:47:40

forkboy
Member
From: Blackpool, England
Registered: 2005-09-03
Posts: 74

Re: [solved] Remove hibernate and standby from KDE menu

vassie wrote:

Are you using KDM or LightDM?

I am using KDM.

Thanks, but kmenuedit doesn't allow you to remove the hibernate and standby options.

Offline

#5 2013-04-20 12:14:41

timgreen
Member
From: Bremen
Registered: 2013-04-20
Posts: 6
Website

Re: [solved] Remove hibernate and standby from KDE menu

You have to change user/share/polkit-1/actions/org.freedesktop.login1.policy.

  <action id="org.freedesktop.login1.suspend">
                <description>Suspend the system</description>
                <message>Authentication is required for suspending the system.</message>
                <defaults>
                        <allow_any>auth_admin_keep</allow_any>
                        <allow_inactive>auth_admin_keep</allow_inactive>
                        <allow_active>no</allow_active>
                </defaults>
        </action>

        <action id="org.freedesktop.login1.suspend-multiple-sessions">
                <description>Suspend the system while other users are logged in</description>
                <message>Authentication is required for suspending the system while other users are logged in.</message>
                <defaults>
                        <allow_any>auth_admin_keep</allow_any>
                        <allow_inactive>auth_admin_keep</allow_inactive>
                        <allow_active>no</allow_active>

also for hibernate too.

I don't find a way to do it with a polkit *.pkla

Offline

#6 2013-04-20 13:29:28

forkboy
Member
From: Blackpool, England
Registered: 2005-09-03
Posts: 74

Re: [solved] Remove hibernate and standby from KDE menu

That's it timgreen, thankyou

Offline

Board footer

Powered by FluxBB