Skip to content

fix(macos): augment conductor PATH with Homebrew bins (Finder-launch trap)#279

Merged
caezium merged 1 commit into
mainfrom
fix/conductor-path-augment
Jul 13, 2026
Merged

fix(macos): augment conductor PATH with Homebrew bins (Finder-launch trap)#279
caezium merged 1 commit into
mainfrom
fix/conductor-path-augment

Conversation

@caezium

@caezium caezium commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Found auditing the fclones-class of bugs. A Finder-launched app gets a stripped PATH (/usr/bin:/bin:/usr/sbin:/sbin — no /opt/homebrew/bin). Absolute-path tools are fine, but a user-installed fallback sidecar (the brew install fclones workaround!) and the engine's own brew-tool shell-outs silently vanished. BurrowConductor.environment now prepends the Homebrew bins (idempotent, order-preserving). Pure + unit-tested (augmentedPATH).

…er-launch trap)

A Finder/LaunchServices launch hands the app a stripped PATH — /usr/bin:/bin:/usr/sbin:/sbin,
with NO /opt/homebrew/bin or /usr/local/bin. Absolute-path tools are fine (the bundled
engine/conductor/fclones, /usr/bin/nettop, /usr/bin/brctl), but two things silently broke:
a user-installed FALLBACK sidecar (e.g. `brew install fclones`, the workaround for builds
without the bundled copy) was invisible to the conductor's PATH resolution, and the engine's
own shell-outs to brew tools had the same blind spot.

BurrowConductor.environment now prepends the Homebrew bins (idempotent, order-preserving) so
PATH resolution matches what the user sees in a terminal. Found while auditing the fclones-class
of "GUI depends on something not guaranteed present" bugs. Pure + unit-tested (augmentedPATH:
strip→prepend, terminal→no-op, empty/nil→fallback).
@caezium
caezium force-pushed the fix/conductor-path-augment branch from 3da9250 to 6a4e632 Compare July 13, 2026 08:57
@caezium
caezium merged commit e804764 into main Jul 13, 2026
2 checks passed
@caezium
caezium deleted the fix/conductor-path-augment branch July 13, 2026 09:01
caezium added a commit that referenced this pull request Jul 13, 2026
Version bump (macOS project.yml, Windows appxmanifest + csproj) + RELEASES.md.
Carries everything since v0.10.0 (a8074d2): the Leftovers/Similar Photos/Network
panes (#273) plus fclones bundling (#278), HEIC surfacing (#283), the HUD popover
+ lazy-mount fixes (#274/#275/#277), and the Finder-launch PATH fix (#279).
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.

1 participant