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

12 lines
331 B
Text
Raw Normal View History

2013-12-27 15:48:31 +00:00
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;
}
});