summaryrefslogtreecommitdiff
path: root/kodi-rpi/60-kodi.rules
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-02-13 08:31:23 +0100
committerKarel Kočí <cynerd@email.cz>2020-02-13 08:31:23 +0100
commit3ec4d97a54ea72054638fec340bd58819b30ec01 (patch)
tree305f6e726d0f7571ca8cffe7dfd09fb59e3bcf2f /kodi-rpi/60-kodi.rules
parent3051cb1d103c8e600346a1a5be268c1343c54f46 (diff)
downloadalpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.tar.gz
alpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.tar.bz2
alpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.zip
kodi-rpi: rename from kodi and try to improve and clean
Diffstat (limited to 'kodi-rpi/60-kodi.rules')
-rw-r--r--kodi-rpi/60-kodi.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/kodi-rpi/60-kodi.rules b/kodi-rpi/60-kodi.rules
new file mode 100644
index 0000000..7023ff7
--- /dev/null
+++ b/kodi-rpi/60-kodi.rules
@@ -0,0 +1,12 @@
+// DO NOT EDIT THIS FILE, it will be overwritten on update
+//
+// Allows shutting down the system when using Kodi with a dedicated user
+
+polkit.addRule(function(action, subject) {
+ if (( (action.id.indexOf("org.freedesktop.udisks.") == 0) ||
+ (action.id.indexOf("org.freedesktop.upower.") == 0) ||
+ (action.id.indexOf("org.freedesktop.login1.") == 0) ) &&
+ subject.user == "kodi") {
+ return polkit.Result.YES;
+ }
+});