Re: LSEnvironment
Re: LSEnvironment
- Subject: Re: LSEnvironment
- From: Dieter Oberkofler <email@hidden>
- Date: Sat, 25 Nov 2006 20:28:20 +0100
Dear Greg,
Sorry, I do understand that you don't want to debug someone's else's
code but I'm still stuck and cannot see what I might do wrongly.
I just used the Carbon app because I wanted to test a most simple case.
I've also tried with getenv but but the environment variables just do
not seem to work.
The final Info.plist file from within the bundle looks like this:
---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Environment Debug</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.Environment</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Environment Debug</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSEnvironment</key>
<dict>
<key>MY_ENV_VAR</key>
<string>MY_ENV_VALUE</string>
</dict>
</dict>
</plist>
---
All I want to do, is to simply set the path for the dylib's and some
environment variables my (Oracle-based) applications needs to have set.
Maybe you can point me to the right direction.
Cheers,
Dieter
On 22.11.2006, at 21:30, Greg Guerin wrote:
Greg,
I'm still stuck!
I really seem to get something wrong and decided to just create my
own little Carbon template to test this.
In the attached file you find a simple Carbon app that dumps the
environment when using New on the menu bar.
Sorry, I don't do off-list debugging.
Since you have a Carbon app, you should probably be asking on
Carbon-dev,
not Xcode-users.
<http://lists.apple.com/mailman/listinfo/carbon-dev>
I suggest posting the source of your main.cp file to the Carbon-dev
list
and asking why the posted code doesn't work. Be sure to include the
output it actually generates, and also be sure to include the
version of
Mac OS X and Xcode you're using. You should also explain how you're
running the code: from Xcode debugger, from Finder, or whatever you
did to
generate the output you've posted.
You may also find the C function getenv() useful, as a cross-check
against
the global variable 'environ'. See 'man getenv'.
-- GG
_______________________________________________
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