All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
The rule that grants the greeter user authorization for
org.freedesktop.login1.{reboot,power-off} lived only in the moonarch
repo and was never installed by any PKGBUILD. On a fresh install the
reboot/shutdown buttons silently failed because greetd's greeter
session is inactive in logind and polkit denies inactive sessions by
default.
Move the rule into the moongreet source tree where it belongs and
ship it via moongreet-git.
13 lines
561 B
Plaintext
13 lines
561 B
Plaintext
// ABOUTME: Allow the greeter user to reboot and power off without authentication.
|
|
// ABOUTME: Required because greetd's greeter session is inactive in logind.
|
|
|
|
polkit.addRule(function(action, subject) {
|
|
if (subject.user === "greeter" &&
|
|
(action.id === "org.freedesktop.login1.reboot" ||
|
|
action.id === "org.freedesktop.login1.reboot-multiple-sessions" ||
|
|
action.id === "org.freedesktop.login1.power-off" ||
|
|
action.id === "org.freedesktop.login1.power-off-multiple-sessions")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|