From ac2d0fa205317925b698b655011fa03d79dc229a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 01:25:54 +0000 Subject: [PATCH] Face unlock: say that the Settings rows need the new session (just install + log in again) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf --- docs/face-unlock.md | 5 ++++- face/install.py | 6 +++++- justfile | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/face-unlock.md b/docs/face-unlock.md index a9cd785..7dc32bc 100644 --- a/docs/face-unlock.md +++ b/docs/face-unlock.md @@ -19,7 +19,10 @@ You need Python 3 with OpenCV 4.5.4 or later (`python3-opencv` on Debian/Ubuntu/ models (OpenCV's YuNet face detector and SFace recognizer, 37 MB) are downloaded from the opencv_zoo repository and checked against their SHA-256 sums. -Then in **Settings > Session > Face unlock**: +The Settings rows are part of the session, not of `install-face`: after updating Chandra, run +`just install` (or `just install-dev`) and log in again so the compositor, its host and the +Settings module are the new ones. (`just reload` alone isn't enough: an older host doesn't serve +the `face-unlock` capability.) Then in **Settings > Session > Face unlock**: - **Add a face…** asks for your password (in the password dialog), then looks through the camera for about ten seconds and keeps five views of your face. Add another face for glasses, diff --git a/face/install.py b/face/install.py index cafee14..b58a6dd 100644 --- a/face/install.py +++ b/face/install.py @@ -105,4 +105,8 @@ try: except ImportError: print("note: install OpenCV for Python (python3-opencv / python-opencv / opencv-python) " "before enrolling a face") -print("enroll a face: Settings > Session > Face unlock, or `chandra-face enroll`") +print(""" +Settings > Session > Face unlock comes with the session itself (the compositor, its host and the +Settings module), not with this install: if Settings doesn't show it yet, run `just install` +(or `just install-dev`) and log out and in again. Or enroll now from a terminal: +`chandra-face enroll`, then `chandra-face pam enable`.""") diff --git a/justfile b/justfile index 6adc1d8..250d0f8 100644 --- a/justfile +++ b/justfile @@ -118,7 +118,7 @@ reload *name: uninstall: scripts/as-root python3 "{{justfile_directory()}}/session/install.py" --remove -# Install face unlock (PAM module + chandra-face + models; docs/face-unlock.md). `just install-face --pam` also turns it on for polkit-1 and sudo. +# Install face unlock (PAM module + chandra-face + models; docs/face-unlock.md). `just install-face --pam` also turns it on for polkit-1 and sudo. The Settings rows come with the session: `just install` and log in again. install-face *args: scripts/as-root python3 "{{justfile_directory()}}/face/install.py" {{args}}