Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop logind integration #133

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

WhyNotHugo
Copy link

This integration is unwanted, as expressed in #117.

Additionally, the integration is not quite correct; to properly launch a
screen locker before sleeping, swayidle should set a suspend inhibitor
at startup, and upon the PrepareForSleep signal, it should start the
screen locker and then release the inhibitor lock. The existing
implementation is racey and may run the locker after resuming from
suspend.

Fixes: #117
Closes: #127
Closes: #121
Closes: #64
Closes: #59
Closes: #125
Closes: #89

This integration is unwanted, as expressed in swaywm#117.

Additionally, the integration is not quite correct; to properly launch a
screen locker before sleeping, swayidle should set a suspend inhibitor
**at startup**, and upon the PrepareForSleep signal, it should start the
screen locker and then release the inhibitor lock. The existing
implementation is racey and may run the locker _after_ resuming from
suspend.

Fixes: swaywm#117
Closes: swaywm#127
Closes: swaywm#121
Closes: swaywm#64
Closes: swaywm#59
Closes: swaywm#125
Closes: swaywm#89
@emersion
Copy link
Member

emersion commented Nov 4, 2022

Looks good.

A possible replacement for users is https://git.sr.ht/~whynothugo/systemd-lock-handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment