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) {