aboutsummaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules
blob: 35b9559c557bc6c365f0c9f17dc3202efd9f9540 (plain)
1
2
3
4
5
6
7
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" &&
        action.lookup("unit").indexOf("agl-app") == 0 &&
        subject.isInGroup("applaunchd")) {
        return polkit.Result.YES;
    }
});