Re: LSEnvironment
Re: LSEnvironment
- Subject: Re: LSEnvironment
- From: Dieter Oberkofler <email@hidden>
- Date: Mon, 27 Nov 2006 11:12:21 +0100
Philip,
Thanks' a lot for your help and it does work but I still do not
understand what I'm doing wrong in my app.
Could you please provide me with the source code of your project so I
might track down the differences?
Cheers,
-Dieter
On 26.11.2006, at 00:36, Philip Aker wrote:
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden