I’ve finally resolved a problem that was plaguing our customers on 10.10 and 11 with our product and Shell processes. Apparent;y, while Apple has forced developers to place external command line tools into /usr/local/bin, they no longer promote that as part of the system PATH variable. Even though the user may see their path as including /usr/local/bin:
$ echo $PATH /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin_42/bin/:/usr/local/mysql/bin
The PATH passed to the shell for a Xojo project only contains the default system paths of /bin, /usr/bin, /sbin, and /usr/sbin in 10.10 and 10.11 (and 10.12).
To solve this so you’re not having to update to handle the differences between OS X designs, add this code to your App’s Open event:
Dim origPath As String = System.EnvironmentVariable("PATH") System.EnvironmentVariable("PATH") = "/usr/local/bin:" + origPath
Here’s to hoping that might save some of you Shell frustration down the line.