react to logind Unlock signal for external session unlock recovery

This commit is contained in:
Damocles 2026-04-18 09:32:35 +02:00
parent d0c0efb0ee
commit 3c9bf06bf7

View file

@ -56,7 +56,8 @@ Scope {
onRead: data => { onRead: data => {
if (data.indexOf(".Lock ()") !== -1 && root._enabled) if (data.indexOf(".Lock ()") !== -1 && root._enabled)
_lock.locked = true; _lock.locked = true;
// Unlock is PAM-driven, ignore logind Unlock signal else if (data.indexOf(".Unlock ()") !== -1 && _lock.locked)
_lock.locked = false;
} }
} }
} }