mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
Polkit rules, take 3.
This commit is contained in:
parent
65b4b1e63d
commit
716f3f1405
1 changed files with 11 additions and 0 deletions
11
alarm/xbmc-rbp-git/polkit.rules
Normal file
11
alarm/xbmc-rbp-git/polkit.rules
Normal file
|
@ -0,0 +1,11 @@
|
|||
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;
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue