Mac OS X applications that are launched by the Finder (e.g., by double clicking the associated.app folder) do not see environment variable settings you make for your Unix shell, say from a Terminal window or in your .bash_profile file. For these applications you must put your settings in a property list file that Mac OS X reads when you log in. That file is ~/.MacOSX/environment.plist