summaryrefslogtreecommitdiffstats
path: root/abs/extra/xbmc/polkit.rules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-03-18 21:19:07 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-03-18 21:19:07 (GMT)
commitacca99b0f5c89cc3d5d9dc8df9df3d46282a338d (patch)
tree9ae33c5f54e0e9df09619ad195998401d30297d3 /abs/extra/xbmc/polkit.rules
parent600fc5bf5b9fefec496a9750c873c3e064730a0a (diff)
downloadlinhes_pkgbuild-acca99b0f5c89cc3d5d9dc8df9df3d46282a338d.zip
linhes_pkgbuild-acca99b0f5c89cc3d5d9dc8df9df3d46282a338d.tar.gz
linhes_pkgbuild-acca99b0f5c89cc3d5d9dc8df9df3d46282a338d.tar.bz2
xbmc: update to 12.3. refs #962
Diffstat (limited to 'abs/extra/xbmc/polkit.rules')
-rw-r--r--abs/extra/xbmc/polkit.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/extra/xbmc/polkit.rules b/abs/extra/xbmc/polkit.rules
new file mode 100644
index 0000000..4b6d0fd
--- /dev/null
+++ b/abs/extra/xbmc/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;
+ }
+ }
+});