Face unlock window: live camera preview, Snap, thumbnails, one password on Apply
CI / test (push) Failing after 12m30s
CI / test (push) Failing after 12m30s
Settings > Session "Add or remove faces…" (and "Remove…" on a face) opens a compositor-drawn Face unlock window instead of running root steps one by one: - chandra-face camera runs as the user (no password): it streams a small live picture with the face box and a cropped thumbnail per snap; the snaps' embeddings stay in that process, nothing is written to disk. - Click a snap to drop it; mark saved faces Remove/Keep. - Apply saves the snaps as one face and removes the marked ones in one root `chandra-face apply` (JSON on stdin, validated) through run0/pkexec: one password prompt. - New raster host function image-pixels (host-wasm, wasmhost, native) for the window's pictures. Tests: camera session and apply in face/test_face.py; the window end to end against a fake tool in compositor/host/face_test.mbt. Docs explain why the change itself still needs root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
This commit is contained in:
74 files changed
+2617
-89
No files matched your search
@@ -62,6 +62,10 @@ interface raster {
|
||||
/// (the Alt+Tab switcher's window previews). `reuse`: an earlier thumbnail handle to overwrite
|
||||
/// in place, 0 for a new one. 0 when the surface is unknown or the size is silly.
|
||||
thumbnail: func(surface: u32, w: s32, h: s32, reuse: u32) -> u32;
|
||||
/// `w` x `h` RGBA8888 pixels as an image for `draw-image` (the face unlock window's camera
|
||||
/// picture). `reuse`: an earlier handle from this function or `thumbnail` to overwrite in place,
|
||||
/// 0 for a new one. 0 when the size is silly or `rgba` is too short.
|
||||
image-pixels: func(w: s32, h: s32, rgba: list<u8>, reuse: u32) -> u32;
|
||||
/// Draw a frame into the host framebuffer.
|
||||
submit: func(f: frame);
|
||||
/// The framebuffer as RGBA8888 (for screenshots and tests; the display path never needs it).
|
||||
|
||||
Reference in new issue
Block a user