LockScreen: allow password unlock for fingerprint-enabled users

This commit is contained in:
wxlyyy
2026-01-11 18:39:12 +08:00
parent e38881b1f7
commit 956c05014e
+9
View File
@@ -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