1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

refactor(auth): relay on distro system auth over DMS managed sessions

- Gate greeter external-auth status fprint availability only on confirmed setups
- Reload dankshell-U2F/U2F-Key watchers live

Related: #2874
Port 1.5
This commit is contained in:
purian23
2026-07-17 17:27:45 -04:00
parent 2986e354e8
commit 3938e60ce4
7 changed files with 75 additions and 38 deletions
+4
View File
@@ -113,6 +113,7 @@ Scope {
id: u2fConfigWatcher
path: "/etc/pam.d/dankshell-u2f"
watchChanges: true
printErrors: false
}
@@ -488,6 +489,9 @@ Scope {
root.resetAuthFlows();
if (!SettingsData.lockPamExternallyManaged && !dankshellConfigWatcher.loaded && !userPamWatcher.loaded)
ensureUserPamConfig();
// FileView cannot watch a path that does not exist yet; re-read so a
// dedicated service created after startup is used on the next lock.
u2fConfigWatcher.reload();
fprint.checkAvail();
u2f.checkAvail();
}