diff --git a/packages/omamobile-shell/plugins/omamobile.fingerprint/Fingerprint.qml b/packages/omamobile-shell/plugins/omamobile.fingerprint/Fingerprint.qml index 5ebf1eaf3..d24eafd80 100644 --- a/packages/omamobile-shell/plugins/omamobile.fingerprint/Fingerprint.qml +++ b/packages/omamobile-shell/plugins/omamobile.fingerprint/Fingerprint.qml @@ -218,13 +218,28 @@ Item { // The file is replaced with rename(2) on every change; a quick re-read // while anything shows makes sure a missed change cannot leave it stale. + // Without the file (the fingerprint stack starts after the shell, or + // stopped) there is nothing to watch, so look for it again until it + // appears; each reload() sets the watch up again (FileView::reload runs + // updatePath, and so updateWatchedFiles), so it follows the file from + // then on. Only where the stack is installed: elsewhere the file never + // appears. Timer { interval: root.screenOpen ? 500 : 2000 repeat: true - running: root.shown || root.screenOpen + running: root.shown || root.screenOpen || (root.sensor === null && root.stackInstalled) onTriggered: stateFile.reload() } + // The fingerprint stack's runner, as the Setup menu's Fingerprint entry + // tests for it. + property bool stackInstalled: false + Process { + command: ["test", "-x", Quickshell.env("OMAMOBILE_FP_RUNNER") || "/usr/lib/omamobile-fp/omamobile-fp-chroot"] + running: true + onExited: function(exitCode) { root.stackInstalled = exitCode === 0 } + } + // ---------------------------------------------------------------- geometry // The phone's own panel (DSI), else the first screen of the panel's shape diff --git a/packages/omamobile-shell/version b/packages/omamobile-shell/version index 3c7e99b54..316e280ff 100644 --- a/packages/omamobile-shell/version +++ b/packages/omamobile-shell/version @@ -1 +1 @@ -0.2.131 +0.2.132