-
Notifications
You must be signed in to change notification settings - Fork 202
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
All finished
events are resulting in an exit(2)
, when the protocol states otherwise
#346
Comments
I'm not sure this is a good thing to do. I'm worried about unlocking in other situations that when the user has correctly typed their password. If the compositor decides to unlock, they shouldn't care that the client sends the |
I suppose this issue is primarily about the exit code. To sort that part out, we could (Sending |
An |
I'm a little uneasy exiting with a zero code when the user hasn't explicitly unlocked the screen by typing the correct password. |
Yeah I understand that. The fact that the If that's the case, I'd be okay leaving it for the time being. We might eventually require an updated spec if we're serious about the idea that compositor may implement another avenue for authentication (e.g. logind) 😉 |
Although... Perhaps I am wrong! There are two scenarios I see:
The first case would be a valid |
I noticed that whenever a
finished
event is sent toext_session_lock_v1
, swaylock exits with2
. According to the spec (source: https://wayland.app/protocols/ext-session-lock-v1#ext_session_lock_v1:event:finished):In this case, I would expect
swaylock
to send anunlock_and_destroy
request and exit gracefully.Use case: This could happen because the compositor's policy accepts unlocking via logind (or some other 3rd party mechanism) as a valid unlock. In this case, we want the compositor to inform the client that they can exit without any issues.
Let me know if I'm misunderstanding something here. Cheers!
The text was updated successfully, but these errors were encountered: