fix: pills inactive on boot — export ~/.local/bin to PATH in stoa-bar - #133
Merged
Conversation
…nd stoa-* scripts When Hyprland exec-once launches stoa-bar, ~/.local/bin is absent from the inherited PATH (display manager / autologin TTY environment). Quickshell Process blocks that call stoa-doctor-status / stoa-drive-status silently fail → pills stay at their grey/inactive defaults until the user manually restarts quickshell from a terminal (which does have the full PATH). Exporting PATH in stoa-bar.sh before exec-ing quickshell propagates ~/.local/bin to all child processes, making the pills live immediately after the first poll (~0 s on boot). Also removes the spurious trailing & from the hyprswitch exec-once line — exec-once already backgrounds; the & was a no-op double-fork. https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe
Signed-off-by: Victor Gabriel Schneider <victor.gschneider@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exec-oncelaunchesstoa-bar, the inherited PATH (from display manager or autologin TTY) does not include~/.local/bin. Every QuickshellProcessthat callsstoa-doctor-statusorstoa-drive-statussilently fails → pills stay at grey/inactive defaults (issues: -1,total: 0) until the user manually restarts quickshell from a terminal (which has the full PATH via.bashrc).PATH="${HOME}/.local/bin:${PATH}"instoa-bar.shbeforeexec quickshell. This propagates to all child processes, so plugins findstoa-*scripts immediately on first poll.&from thehyprswitch initexec-once line —exec-oncealready backgrounds the process; the&was a no-op double-fork.Test plan
killall quickshellstoa-doctorpill shows green (0 issues) or correct warning/error count right after loginstoa-drivepill shows correct mounted/total count right after login&)https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe
Generated by Claude Code