diff options
author | Sonic-Y3k | 2017-02-12 16:22:54 +0100 |
---|---|---|
committer | Sonic-Y3k | 2017-02-12 16:22:54 +0100 |
commit | 763b58efa49c1eb643314b4099e3f13889552110 (patch) | |
tree | 443d4e1ed9d1fc6854594c6dd74169951ddcdcd9 /polkit.rules | |
parent | 9b604f27200400ae5436644029358d3bc39df8a7 (diff) | |
download | aur-kodi-c2-x11.tar.gz |
Next try.
Diffstat (limited to 'polkit.rules')
-rw-r--r-- | polkit.rules | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/polkit.rules b/polkit.rules new file mode 100644 index 000000000000..670a01a80334 --- /dev/null +++ b/polkit.rules @@ -0,0 +1,15 @@ +polkit.addRule(function(action, subject) { + if (subject.user == "kodi") { + 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; + } + if (action.id.indexOf("org.freedesktop.upower.") == 0) { + return polkit.Result.YES; + } + } +}); |