Skip to content

Commit 99f47b9

Browse files
authored
Create 50-envycontrol.rules
1 parent 33495ce commit 99f47b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

50-envycontrol.rules

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
polkit.addRule(function(action, subject) {
2+
if (action.id == "org.freedesktop.policykit.exec" &&
3+
(action.lookup("program") == "/usr/bin/envycontrol" ||
4+
action.lookup("program").indexOf("systemctl") >= 0 ||
5+
action.lookup("program").indexOf("shutdown") >= 0 ||
6+
action.lookup("program").indexOf("reboot") >= 0) &&
7+
subject.isInGroup("wheel")) {
8+
return polkit.Result.YES;
9+
}
10+
});

0 commit comments

Comments
 (0)