- polkit.addRule(function(action, subject) {
- if ((action.id == "org.corectrl.helper.init" ||
- action.id == "org.corectrl.helperkiller.init") &&
- subject.local == true &&
- subject.active == true &&
- subject.isInGroup("your-user-group")) {
- return polkit.Result.YES;
- }
- });
|