mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
LockScreen: allow password unlock for fingerprint-enabled users
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Services.Pam
|
||||
import qs.Commons
|
||||
import qs.Services.System
|
||||
@@ -59,6 +60,9 @@ Scope {
|
||||
infoMessage = "";
|
||||
showFailure = false;
|
||||
errorMessage = "";
|
||||
occupyFingerprintSensorProc.running = true;
|
||||
} else {
|
||||
occupyFingerprintSensorProc.running = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,6 +93,11 @@ Scope {
|
||||
pam.start();
|
||||
}
|
||||
|
||||
Process {
|
||||
id: occupyFingerprintSensorProc
|
||||
command: [ "fprintd-verify" ]
|
||||
}
|
||||
|
||||
PamContext {
|
||||
id: pam
|
||||
// Use custom PAM config to ensure predictable password-only authentication
|
||||
|
||||
Reference in New Issue
Block a user