chore(deck): Allow passwordless enablement of autologin handlers

This commit is contained in:
RJ Trujillo 2023-09-12 15:22:30 -06:00
parent f7dc5e5d1f
commit 721f719fde

View File

@ -0,0 +1,9 @@
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel") &&
action.id == "org.freedesktop.systemd1.manage-units" &&
(action.lookup("unit") == "desktop-autologin.service" ||
action.lookup("unit") == "gamescope-autologin.service"))
{
return polkit.Result.YES;
}
})