PKGBUILDs/alarm/kodi-rbp4/polkit.rules

16 lines
509 B
Text
Raw Normal View History

2019-07-24 23:51:15 +00:00
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;
}
2020-07-10 20:55:39 +00:00
if (action.id.indexOf("org.freedesktop.udisks2.") == 0) {
return polkit.Result.YES;
}
2019-07-24 23:51:15 +00:00
}
});