You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trigger and notification data can replace PATH and other variables widget commands rely on #5
Variables sent with StableBar --trigger EVENT KEY=VALUE, and string values in a distributed notification's userInfo, are merged over the command environment. Only NAME, CONFIG_DIR and SENDER are protected, so PATH, HOME or ZDOTDIR sent with an event replace the real values for every widget subscribed to that event and for the refresh after its actions.
On a branch that runs commands with zsh -c, the widget printed ~/.cargo/bin:/nowhere (~/.zshenv added the first entry). On main, commands run with zsh -lc, so /etc/zprofile and ~/.zprofile rebuild most of PATH, but HOME and ZDOTDIR still change which startup files zsh reads.
Diagnosis
Sources/StableBar/ScriptWidget.swift:8: commandEnvironment merges event values over configured ones.
Sources/StableBar/LaunchCommand.swift:81: --trigger accepts any KEY=VALUE.
Sources/StableBar/BarStore.swift:208: notification userInfo strings become environment variables.
Only unsandboxed processes running as the same user can send this data (sandboxed apps cannot attach userInfo to distributed notifications), so it does not cross a privilege boundary. The realistic risk is breaking commands by accident.
Related
README "Script events" documents that event data overrides configured variables.
Activity
github-actions commentedon Oct 15, 2026
🎉 This issue has been resolved in version 0.2.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀