summaryrefslogtreecommitdiff
path: root/libre/xbmc-libre-lts/polkit.rules
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-09 18:38:32 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-09 18:38:32 -0300
commit235815e2e35bf56caea2f9659fd095a92a6a6ae3 (patch)
tree428d75cf8b4211c3adf543b547a467df4e19a23e /libre/xbmc-libre-lts/polkit.rules
parent787083dd9c41597952c8eb2c50e5776c3a39eef2 (diff)
downloadabslibre-235815e2e35bf56caea2f9659fd095a92a6a6ae3.tar.gz
abslibre-235815e2e35bf56caea2f9659fd095a92a6a6ae3.tar.bz2
abslibre-235815e2e35bf56caea2f9659fd095a92a6a6ae3.zip
xbmc-libre-lts: add new package to [libre]
Diffstat (limited to 'libre/xbmc-libre-lts/polkit.rules')
-rw-r--r--libre/xbmc-libre-lts/polkit.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/xbmc-libre-lts/polkit.rules b/libre/xbmc-libre-lts/polkit.rules
new file mode 100644
index 000000000..4b6d0fda0
--- /dev/null
+++ b/libre/xbmc-libre-lts/polkit.rules
@@ -0,0 +1,12 @@
+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;
+ }
+ }
+});