summaryrefslogtreecommitdiff
path: root/kodi/60-kodi.rules
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-02-04 23:56:44 +0100
committerKarel Kočí <cynerd@email.cz>2020-02-04 23:56:44 +0100
commitfda42396b11d15726b9264f9bfdd6f68c439f5ff (patch)
tree66149f03b80f07074844b506cdfb37f4d2a3bd7e /kodi/60-kodi.rules
parentdfcb10fdfdd7f18be775c142fe70b6d06e124d3a (diff)
downloadalpine-personal-pkgs-fda42396b11d15726b9264f9bfdd6f68c439f5ff.tar.gz
alpine-personal-pkgs-fda42396b11d15726b9264f9bfdd6f68c439f5ff.tar.bz2
alpine-personal-pkgs-fda42396b11d15726b9264f9bfdd6f68c439f5ff.zip
kodi: add and try to add raspberry pi build
Diffstat (limited to 'kodi/60-kodi.rules')
-rw-r--r--kodi/60-kodi.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/kodi/60-kodi.rules b/kodi/60-kodi.rules
new file mode 100644
index 0000000..7023ff7
--- /dev/null
+++ b/kodi/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;
+ }
+});