Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/omamobile-shell/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.131
0.2.132