2020-11-10, 14:24
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
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;
}
// }
});