Skip to content

fix: pills inactive on boot — export ~/.local/bin to PATH in stoa-bar - #133

Merged
VictorGSchneider merged 2 commits into
mainfrom
claude/cool-clarke-AUFdY
Jun 7, 2026
Merged

fix: pills inactive on boot — export ~/.local/bin to PATH in stoa-bar#133
VictorGSchneider merged 2 commits into
mainfrom
claude/cool-clarke-AUFdY

Conversation

@VictorGSchneider

@VictorGSchneider VictorGSchneider commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Root cause: When Hyprland's exec-once launches stoa-bar, the inherited PATH (from display manager or autologin TTY) does not include ~/.local/bin. Every Quickshell Process that calls stoa-doctor-status or stoa-drive-status silently 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).
  • Fix: Export PATH="${HOME}/.local/bin:${PATH}" in stoa-bar.sh before exec quickshell. This propagates to all child processes, so plugins find stoa-* scripts immediately on first poll.
  • Bonus: Remove spurious trailing & from the hyprswitch init exec-once line — exec-once already backgrounds the process; the & was a no-op double-fork.

Test plan

  • Reboot; pills (doctor + drive) should show live state immediately without needing killall quickshell
  • stoa-doctor pill shows green (0 issues) or correct warning/error count right after login
  • stoa-drive pill shows correct mounted/total count right after login
  • Alt+Tab still opens hyprswitch visual switcher (hyprswitch daemon starts cleanly without &)

https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe


Generated by Claude Code

claude and others added 2 commits June 7, 2026 01:43
…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>
@VictorGSchneider VictorGSchneider self-assigned this Jun 7, 2026
@VictorGSchneider
VictorGSchneider merged commit c8b0e66 into main Jun 7, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/cool-clarke-AUFdY branch June 7, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants