cosmic-greeter icon indicating copy to clipboard operation
cosmic-greeter copied to clipboard

Ensure that session is relocked if compositor or lock screen die

Open jackpot51 opened this issue 1 year ago • 2 comments

When #27 is merged, it will be possible to save a file to some path like /run/user/$UID/cosmic-greeter-$XDG_SESSION_ID to denote when the session is supposed to be locked. This file can be used to automatically relock the session if either the compositor or the lock screen died and were restarted.

jackpot51 avatar Apr 05 '24 20:04 jackpot51

This might only be needed for the case that the compositor malfunctions

Provided the compositor is still functioning and implements https://wayland.app/protocols/ext-session-lock-v1 , the lock screen should be able to malfunction without the compositor considering the screen unlocked

jokeyrhyme avatar Apr 15 '24 22:04 jokeyrhyme

The compositor doesn't unlock the screen, but cosmic-greeter needs to know on restart (after a potential malfunction), if it should run in the background or re-acquire the lock to display the lock screen.

Drakulix avatar Apr 16 '24 10:04 Drakulix