From fc0af739e7cc4fcacc40b23d48948fe5b96d1d59 Mon Sep 17 00:00:00 2001 From: Claudio Date: Wed, 2 Sep 2026 10:43:54 +0200 Subject: [PATCH] fix: the refresh button could not find dipstick plasmashell runs with a PATH of /usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin and nothing else. A `make install` into the home puts the binary in ~/.local/bin, which is not on that list, so `dipstick refresh` from the QML exited 127 and the button reported the binary as missing - while the very same command worked from a terminal, where the user's shell does have the directory on its path. The command already goes through a shell, so the path fix travels with it. A system install lands in /usr/bin and was never affected, which is exactly why the bug survived: it only shows up in the installation the developer uses. --- CLAUDE.md | 6 ++++++ plasmoid/contents/ui/Refresher.qml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6618076..f3210e2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -113,5 +113,11 @@ journal, not to the terminal. session language while the README is in English. Say in the caption that the data is made up: a screenshot of invented figures presented as a real reading is a small lie that costs nothing to avoid. +- **`plasmashell` runs with a PATH that does NOT include `~/.local/bin`.** The + session gives it `/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin` and nothing + else, so a plain `dipstick refresh` from the QML exits 127 after a `make + install` into the home — while the very same command works from a terminal. + A system/RPM install lands in `/usr/bin` and hides the bug entirely. Anything + the plasmoid launches has to carry the path with it. - **`state.json` carries no interface strings.** Localisation belongs to the plasmoid; the daemon runs with no locale context. diff --git a/plasmoid/contents/ui/Refresher.qml b/plasmoid/contents/ui/Refresher.qml index ff91692..17453c9 100644 --- a/plasmoid/contents/ui/Refresher.qml +++ b/plasmoid/contents/ui/Refresher.qml @@ -32,7 +32,13 @@ QtObject { property bool _running: false - readonly property string command: "dipstick refresh" + // The command goes through a shell, so the PATH fix travels with it. + // plasmashell inherits the session's PATH, which does NOT include + // ~/.local/bin: a `make install` into the home puts the binary somewhere + // the panel cannot see, and the button answers 127 while `dipstick` works + // perfectly from a terminal. A system install lands in /usr/bin and is + // already on the path, so this only adds the case that was missing. + readonly property string command: "PATH=\"$HOME/.local/bin:$PATH\" dipstick refresh" function trigger() { if (busy) { -- knotmirror 0.0.1