PKGBUILDs/alarm/xbmc-imx/10-xbmc.rules
2014-06-30 15:26:06 +02:00

11 lines
351 B
Text

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