fix: restore lock screen U2F/fingerprint auth to working state (#2052)

* fix: restore lock screen U2F/fingerprint auth to working state

* fix(pam): Keep SettingsData as single source of truth for auth availability
- Restores SettingsData for fingerprint/U2F, keeping lock screen and New Greeter Settings UI in sync

---------

Co-authored-by: purian23 <[email protected]>
This commit is contained in:
Patrick Fischerandpurian23 authored and purian23 committed 2026-03-26 10:48:10 -04:00
1 parent dd9851b4f0
commit 8180e30e8e
1 file changed
+4 -4
+4 -4
View File
@@ -88,9 +88,9 @@ Scope {
}
FileView {
id: loginConfigWatcher
id: u2fConfigWatcher
path: "/etc/pam.d/login"
path: "/etc/pam.d/dankshell-u2f"
printErrors: false
}
@@ -98,7 +98,7 @@ Scope {
id: passwd
config: dankshellConfigWatcher.loaded ? "dankshell" : "login"
configDirectory: dankshellConfigWatcher.loaded || loginConfigWatcher.loaded ? "/etc/pam.d" : Quickshell.shellDir + "/assets/pam"
configDirectory: dankshellConfigWatcher.loaded ? "/etc/pam.d" : Quickshell.shellDir + "/assets/pam"
onMessageChanged: {
if (message.startsWith("The account is locked"))
@@ -244,7 +244,7 @@ Scope {
configDirectory: u2fConfigWatcher.loaded ? "/etc/pam.d" : Quickshell.shellDir + "/assets/pam"
onMessageChanged: {
if (message !== "")
if (message.toLowerCase().includes("touch"))
root.u2fState = "waiting";
}