diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-11-28 17:38:20 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-11-28 17:38:20 -0200 |
commit | 6e032163d864e969926dd85e0b68719a855658c6 (patch) | |
tree | 1c193ef41299300673462cd0a6e4c855b97b9293 /libre/xbmc-libre/polkit.rules | |
parent | e460381fc8da44132a93b65aacc234fcd43b6d1e (diff) | |
download | abslibre-6e032163d864e969926dd85e0b68719a855658c6.tar.gz abslibre-6e032163d864e969926dd85e0b68719a855658c6.tar.bz2 abslibre-6e032163d864e969926dd85e0b68719a855658c6.zip |
xbmc-libre-12.2-7: add polkit.rules
Diffstat (limited to 'libre/xbmc-libre/polkit.rules')
-rw-r--r-- | libre/xbmc-libre/polkit.rules | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libre/xbmc-libre/polkit.rules b/libre/xbmc-libre/polkit.rules new file mode 100644 index 000000000..5bc7e69f5 --- /dev/null +++ b/libre/xbmc-libre/polkit.rules @@ -0,0 +1,11 @@ +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; + } +}); |