We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33495ce commit 99f47b9Copy full SHA for 99f47b9
50-envycontrol.rules
@@ -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