PKGBUILDs/alarm/xbmc-rbp-git/polkit.rules
2013-12-27 16:48:31 +01:00

11 lines
331 B
Text

polkit.addRule(function(action, subject) {
if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("xbmc")) {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("xbmc")) {
return polkit.Result.YES;
}
});