v17 [Solved] Missing power off and reboot options from power menu
#6
my solution is to edit the polkit file for kodi and disable the Subject.user check:
for Arch Linux Arm you edit this file: /usr/share/polkit-1/rules.d/10-kodi.rules
xml:

polkit.addRule(function(action, subject) {
//    if (subject.user == "kodi") {
        polkit.log("action=" + action);
        polkit.log("subject=" + subject);
        if (action.id.indexOf("org.freedesktop.login1.") == 0) {
            return polkit.Result.YES;
        }
        if (action.id.indexOf("org.freedesktop.udisks.") == 0) {
            return polkit.Result.YES;
        }
        if (action.id.indexOf("org.freedesktop.upower.") == 0) {
            return polkit.Result.YES;
        }
//    }
});
Reply


Messages In This Thread
RE: [Solved] Missing power off and reboot options from power menu - by qaron - 2020-11-10, 14:24
Logout Mark Read Team Forum Stats Members Help
[Solved] Missing power off and reboot options from power menu0