v17 [Solved] Missing power off and reboot options from power menu
#5
Finally solved my issue, but meanwhile switched to Win10 because of this, yes, I know, I'm a newb Smile

Actually, my distro (slackware) is using org.freedesktop.consolekit.policy to control power options. The freedesktop.login1 is used by other linux distributions.

To fix it, like BytEvil suggested first, you can change the policy found in /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy (for my system) and add the <allow_any>yes</allow_any> under system.stop and system.restart.

Or maybe a better sollution, like wsnipex suggested, you can actually create a polkit override in /etc/polkit-1/rules.d/30-kodi-power-options.rules with the following code:
Code:
polkit.addRule(function(action, subject) {
 if (action.id.indexOf("org.freedesktop.consolekit.system") == 0 &&
     subject.user=="kodi") {
     return polkit.Result.YES;
 }
});

Of course, "kodi" will be your user under you run Kodi, or you can change this to subject.isInGroup("users") or whatever group your username is member of.

I had all my answers right here under my nose, but I didn't know where to look Smile
(btw if no one suspects, I'm a newbie with linux)

Thanks guys for the help.
Reply


Messages In This Thread
RE: Missing power off and reboot options from power menu - by iri1 - 2017-10-18, 01:28
Logout Mark Read Team Forum Stats Members Help
[Solved] Missing power off and reboot options from power menu0