Path on OS X

From: Robert <ro....at.web.de>
Date: Tue, 23 Aug 2011 16:48:02 +0200

Hi,

on OS X a special file is needed to have a PATH environment variable
to find stuff like /usr/local/bin/lua (if you don't want to hardcode
everything in your language modules).
I'd suggest to include something like the following in the OS X
section of 2_Installation.md:

By default GUI apps on OS X do not pick up environment variables like
PATH from your shell profile. Thus, Textadept does not find programs
which are for example installed in `/usr/local/bin` when using the run
or compile commands. Environment variables for GUI apps can be set
using an [environment.plist](http://developer.apple.com/library/mac/#qa/qa1067/_index.html)
file in the directory `~/.MacOSX`. If it does not exist you can create
the directory and then run the following command in the terminal to
add your current path to it:
    echo -e "{\n\tPATH = \"$PATH\";\n}" > ~/.MacOSX/environment.plist
Alternatively or if it already exists you can edit it using the
Property List Editor (Xcode 3) or by directly opening it with Xcode
(Xcode 4). After editing the file you need to log out and back in to
see the changes.

Robert
Received on Tue 23 Aug 2011 - 10:48:02 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:20:24 EST