Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions BarWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Item {
}
geodeRun.command = Model.listArgs(vaultPath);
geodeRun.running = true;
// A missing `geode` binary never emits `exited`: the run stays
// running=false (pid null). That is the failed-to-start shape on
// Quickshell 0.3.0. 127 is
// the not-found code; Model turns it into the missing-binary
// reason instead of leaving the empty-vault status up.
if (!geodeRun.running) {
status = Model.statusFromRun(127, "", "");
}
}

onVaultPathChanged: rerun()
Expand All @@ -60,18 +68,11 @@ Item {
}

// The single fold point: exit code + the collector text. Exit 0
// with JSON keeps ok:true.
// with JSON keeps ok:true. Missing-binary runs never reach here
// (no `exited` fires); rerun() catches those via the running flag.
onExited: function (code) {
root.refresh(code, collector.text);
}

// A missing `geode` binary is QProcess.FailedToStart: no `exited`
// fires, so a set vault path would stay on the empty-vault status.
// 127 is the not-found code; Model turns it into the
// missing-binary reason.
onFailedToStart: {
root.status = Model.statusFromRun(127, "", "");
}
}

Row {
Expand Down
Loading