Issues Configuring Mogan on macOS and some workarounds

I’m on macOS 14.8.1 and I’ve installed Mogan 2015.1.4. I would like to set up Mogan in such a way that it can access utility programs installed in /opt/local/bin.

Any ideas welcome.

Cheers, Tilda

As a work around to the issue mentioned above, I wrote a shell wrapper around MoganSTEM.app that seems to be working:

#!/opt/local/bin/bash
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
nohup /Applications/MoganSTEM.app/Contents/MacOS/MoganSTEM “$@” >/dev/null 2>&1 & exit 0

I wonder how this can be achieved from within Mogan.

Cheers, Tilda

Seems like launchctl may be a way of setting the path for applications launched from finder instead of the terminal:

https://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications

Dear @jeroen, thanks for the link. Judging from their discussion, launchctl also seems to have its quirks. So I decided the stick with my shell-wrapper or rather an Animator script that replicates the path environments of my .zprofile.

Cheers, Tilda