summaryrefslogtreecommitdiff
path: root/libre/xbmc-libre-lts/polkit.rules
blob: 4b6d0fda07a48d8bfb8fa056f8e1b03b80120bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
polkit.addRule(function(action, subject) {
    if (subject.user == "xbmc") {
        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;
        }
    }
});