mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
13 lines
395 B
Text
13 lines
395 B
Text
|
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;
|
||
|
}
|
||
|
}
|
||
|
});
|