Face unlock window steps aside while Apply asks for the password
CI / test (push) Canceled after 3m23s

After Apply the window kept the keyboard and the pointer and its dimmed card
covered the screen, so a password dialog that isn't Chandra's own (another
polkit agent's window) couldn't be reached. While Apply waits, the window now
shows only a note at the top and takes no input. A refused or cancelled
password brings it back with the snaps and marks kept (chandra-face camera
restarts the camera instead of exiting) and says so.

Test: snaps, Enter, the password dialog gets typing (Space no longer snaps
underneath) and the Authenticate click, then the root step finishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
This commit is contained in:
Claude committed 2026-11-26 04:05:11 +00:00
1 parent f2b2618104
commit 2c2ce3f913
8 files changed
+150 -8

No files matched your search

+4 -1
View File
@@ -46,7 +46,10 @@ the `face-unlock` capability.) Then in **Settings > Session > Face unlock**:
says why ("No face in view", "More than one face in view", "Come closer to the camera").
- **Remove** / **Keep** on a saved face marks it for removal, or not.
- **Apply** (or Enter) saves the snaps as one new face and removes the marked ones, in one step:
the password dialog asks once, above the window. **Cancel** (Esc) changes nothing.
the password dialog asks once. While it asks, the window steps aside (a note at the top says
it is waiting) so the dialog, Chandra's or another polkit agent's window, gets the keyboard and
the pointer. If the password isn't given, the window comes back with the snaps and marks as
they were and says so. **Cancel** (Esc) changes nothing.
Why root at all: the face data is root's (`/var/lib/chandra-face`, 0600) and PAM trusts it to let
you into sudo and polkit without a password. If you could write it as yourself, so could any