1
0
Fork 0

Allow wheel members to manage systemd units without prompts.
Some checks failed
/ build-gnome (push) Failing after 11m6s
/ build-kde (push) Failing after 13m25s

Required for passwordless run0 usage.
This commit is contained in:
ver4a 2025-03-13 14:00:21 +01:00
parent 02e0d34ac3
commit ae7824edef

View file

@ -0,0 +1,5 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.local && subject.active && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});