mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -05:00
11 lines
424 B
Plaintext
11 lines
424 B
Plaintext
/* Allow running reboot, shutdown as normal user */
|
|
/* of group wheel without sudo password */
|
|
polkit.addRule(function(action, subject) {
|
|
if (action.id == "org.freedesktop.policykit.exec" &&
|
|
(action.lookup("program") == "/usr/bin/reboot" ||
|
|
action.lookup("program") == "/usr/bin/poweroff") &&
|
|
subject.isInGroup("wheel")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|