[racket] calling osx binaries from racket
On Aug 24, 2010, at 6:58 AM, Jakub Piotr Cłapa wrote:
> This came up before and the environment.plist is mentioned in many places as the proper solution. It seems that Apple introduced /etc/paths.d for this but you found that it is not sufficient for GUI apps.
>
> OTOH a simple (getenv "PATH") returns the same things as echo $PATH in a Terminal window. Generally every environment variable I set in my .zshenv is visible in DrRacket. (including all the paths from paths.d)
IIUC, the basic problem here is that on the mac, many users don't start racket from a terminal window, which means that there isn't a $PATH value to inherit.
One solution to this is (as I do) to simply start drracket from the command-line. In this case, you inherit the $PATH environment just fine. I conjecture that you (Jakub) do this as well.
Alternatively, you can use the .plist solution you describe.
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20100825/79a8ec17/attachment.p7s>