summaryrefslogtreecommitdiff
path: root/kodi-rpi/60-kodi.rules
blob: 7023ff73a11cd8ea235e42439725022b0e9663ea (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
        }
});