void-packages/srcpkgs/xbmc-rpi/files/polkit.rules

12 lines
333 B
Text
Raw Normal View History

2014-01-24 10:49:32 +00:00
polkit.addRule(function(action, subject) {
if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("video")) {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("video")) {
return polkit.Result.YES;
}
});