add policy kit

This commit is contained in:
Eshan Roy (Eshanized)
2024-02-25 16:56:57 +05:30
parent 2306e90028
commit 08ea8ef82f

View File

@@ -0,0 +1,9 @@
/* Allow members of the wheel group to execute any actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});