mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
chore(deck): Allow passwordless enablement of autologin handlers
This commit is contained in:
parent
f7dc5e5d1f
commit
721f719fde
@ -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;
|
||||
}
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user