PKGBUILDs/alarm/xbmc-rbp-git/polkit.rules

13 lines
395 B
Text
Raw Normal View History

2013-12-27 15:48:31 +00:00
polkit.addRule(function(action, subject) {
if (subject.user == "xbmc") {
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;
}
}
2013-12-27 15:48:31 +00:00
});