kodi-rpi [alarm] polkit

Request a package to be made here. Make sure you have searched before requesting.

kodi-rpi [alarm] polkit

Postby qaron » Thu Dec 17, 2020 5:09 pm

guys can you update polkit.rules for every user on kodi??
can you edit this file:
Code: Select all
/usr/share/polkit-1/rules.d/10-kodi.rules

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.udisks2.") == 0) {
            return polkit.Result.YES;
        }
//    }
});


this way you enable reboot/shutdown/exit options of power menu on kodi for every user instead of only exit option for every user except kodi user
qaron
 
Posts: 12
Joined: Mon Dec 23, 2019 8:04 am

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 2 guests