diff options
author | Karel Kočí <cynerd@email.cz> | 2020-02-04 23:56:44 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-02-04 23:56:44 +0100 |
commit | fda42396b11d15726b9264f9bfdd6f68c439f5ff (patch) | |
tree | 66149f03b80f07074844b506cdfb37f4d2a3bd7e /kodi/60-kodi.rules | |
parent | dfcb10fdfdd7f18be775c142fe70b6d06e124d3a (diff) | |
download | alpine-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.rules | 12 |
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; + } +}); |