Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
- Subject: Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
- From: "Frederick C. Lee" <email@hidden>
- Date: Fri, 12 May 2006 11:37:59 -0700
...On second thought.
I like the ~/.MacOSX/environment.plist versus any one/combo of
several dot-logon files to glean.
I suppose I could use an AppleScript to populate the ~/.MacOSX/
environment.plist file from
data cleaned from these sources.
That way, I can avoid having to launch a NSTask every time I run the
project.
I'll toy with that approach.
Regards,
Ric.
On May 12, 2006, at 10:21 AM, j o a r wrote:
On 12 maj 2006, at 19.17, Chris Parker wrote:
So my question is, how can I collect all the environment
variables that I had set within my shell's signon file(s)?
When the Finder (really LaunchServices, but close enough) launches
your process, it does not source any of your shell initialization/
login/configuration files.
Technical Q&A 1067 to the rescue!
<http://developer.apple.com/qa/qa2001/qa1067.html>
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden