Problem
On macOS, the menubar app can fail with:
env: codeburn: No such file or directory
when codeburn is installed under user-managed Node paths (for example via nvm). GUI-launched apps often inherit a reduced PATH, so the binary is not found even though it works in Terminal.
Impact
- Menubar refresh silently fails for affected users.
- The app appears broken despite a valid CLI install.
- Users with nvm/volta/asdf/npm-global layouts are disproportionately affected.
Reproduction
- Install
codeburn in a user-managed Node location (e.g. nvm under ~/.nvm/versions/node/.../bin).
- Launch CodeBurn menubar app from Finder (not from an interactive shell).
- Trigger refresh.
- Observe error:
env: codeburn: No such file or directory.
Root Cause
The menubar process used GUI environment PATH values that can omit user-managed Node bin directories.
Proposed / Implemented Approach
- Augment menubar process PATH with known locations (
/opt/homebrew/bin, /usr/local/bin) and discovered user bins (~/.volta/bin, ~/.npm-global/bin, ~/.asdf/shims, and nvm Node version bins containing an executable codeburn).
- Cache discovered user PATH entries as a one-time computation so refreshes do not repeatedly rescan filesystem directories.
- Add deterministic tests for:
- nvm executable/bin discovery behavior
- PATH augmentation dedupe behavior
Notes
No debug instrumentation should be kept in production for this fix line.
Problem
On macOS, the menubar app can fail with:
env: codeburn: No such file or directorywhen
codeburnis installed under user-managed Node paths (for example via nvm). GUI-launched apps often inherit a reducedPATH, so the binary is not found even though it works in Terminal.Impact
Reproduction
codeburnin a user-managed Node location (e.g. nvm under~/.nvm/versions/node/.../bin).env: codeburn: No such file or directory.Root Cause
The menubar process used GUI environment
PATHvalues that can omit user-managed Node bin directories.Proposed / Implemented Approach
/opt/homebrew/bin,/usr/local/bin) and discovered user bins (~/.volta/bin,~/.npm-global/bin,~/.asdf/shims, and nvm Node version bins containing an executablecodeburn).Notes
No debug instrumentation should be kept in production for this fix line.