Face unlock: say that the Settings rows need the new session (just install + log in again)
CI / test (push) Successful in 2m1s
CI / test (push) Successful in 2m1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
This commit is contained in:
3 files changed
+10
-3
No files matched your search
+4
-1
@@ -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
|
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.
|
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
|
- **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,
|
camera for about ten seconds and keeps five views of your face. Add another face for glasses,
|
||||||
|
|||||||
+5
-1
@@ -105,4 +105,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
print("note: install OpenCV for Python (python3-opencv / python-opencv / opencv-python) "
|
print("note: install OpenCV for Python (python3-opencv / python-opencv / opencv-python) "
|
||||||
"before enrolling a face")
|
"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`.""")
|
||||||
@@ -118,7 +118,7 @@ reload *name:
|
|||||||
uninstall:
|
uninstall:
|
||||||
scripts/as-root python3 "{{justfile_directory()}}/session/install.py" --remove
|
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:
|
install-face *args:
|
||||||
scripts/as-root python3 "{{justfile_directory()}}/face/install.py" {{args}}
|
scripts/as-root python3 "{{justfile_directory()}}/face/install.py" {{args}}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user