On 2006-11-25, at 11:33:46, Dieter Oberkofler wrote:
I'm trying (very hard) to set some environment variables in an
Carbon application bundle using the LSEnvironment key but the
environment of the application does not seem to change at all. I
checked the Apple documentation and it seems as if this should
work. Any help is appreciated.
Dieter,
Here's an app where you can change the value for the key in the
Info.plist to verify that the mechanism works. If you want to use
the 'open' command from Terminal then it seems you have to use the
extension: "open LSEnv.app". Normally though, it's meant to work by
double clicking its icon in the Finder.
<http://homepage.mac.com/philip_aker/dl/apps/LSEnv.app.zip>
I don't know if these are officially supported but another way is:
extern char **environ;
extern char **NXArgv;
extern int NXArgc;
Philip Aker
email@hidden