retroarch-standalone-service/arm/polkit/polkit.rules
graysky 44ed658e1b add files for Arch ARM
streamline maintenance of Arch ARM packages/single source of files
2021-04-03 09:05:25 -04:00

16 lines
509 B
Plaintext

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;
}
}
});