PKGBUILDs/community/xbmc/polkit.rules
2014-01-21 13:08:42 +00:00

12 lines
395 B
Text

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;
}
}
});