gog wrapper not used due to PATH priority on Mac Mini
Source type:
obs· Harvested: 2026-05-03 · Original date: 2026-05-03T01:36:51.417Z Metadata:{"project":"lunhsiangyuan","type":"discovery","obs_id":64932}
obs/64932 · discovery · 2026-05-03T01:36:51.417Z
gog wrapper not used due to PATH priority on Mac Mini
Testing the gog wrapper revealed that it is not being invoked. The which command finds /opt/homebrew/bin/gog (the original binary) instead of ~/bin/gog (the wrapper). When gog runs, it errors with “missing —account”, confirming that the wrapper’s GOG_ACCOUNT environment variable export is not being applied. This indicates that ~/bin is either not in the user’s PATH or appears after /opt/homebrew/bin, causing the shell to find and execute the original binary instead of the wrapper.
Concepts: [“problem-solution”,“gotcha”,“how-it-works”]
Facts: [“gog wrapper script installed at ~/bin/gog”,“which gog resolves to /opt/homebrew/bin/gog not /bin/gog”,“gog command fails with missing —account error indicating wrapper environment variables not applied”,“/bin appears not in PATH or appears after /opt/homebrew/bin in PATH”]
[← 回 Alfred Brain Hub]