Re: Oracle environment variables in bundle
Re: Oracle environment variables in bundle
- Subject: Re: Oracle environment variables in bundle
- From: Jim Ingham <email@hidden>
- Date: Wed, 18 May 2005 14:44:45 -0700
Note that the LSEnvironment plist entry only works when double-
clicked from the Finder - it's documented as such in the Runtime
Configuration docs. It doesn't even seem to work when you use the
"open App" command from Terminal - which is a little surprising. Nor
does it work when run from Xcode. I tried a trivial App though, and
that got the environment variables set in the LSEnvironment...
Jim
On May 18, 2005, at 10:07 AM, Dieter Oberkofler wrote:
I'm trying to set some environment variables needed to run an
Oracle based application in the OSX environment. As there seems no
way to define a "global" environment setting that is used when
starting an application in the Finder I have chooses to use the
LSEnvironment key in the Info.plist file that is part of the
application bundle generated in XCode.
The following shows the content of the Info.plist but does not set
the enviroinment as expected:
<?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>LJSApplication</string>
<key>CFBundleIdentifier</key>
<string>LJSApplication</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSEnvironment</key>
<dict>
<key>NLS_LANG</key>
<string>AMERICAN_AMERICA.US7ASCII</string>
</dict>
</dict>
</plist>
A few questions:
1) Is there a "preferred way" on how to deal with environment
variables that should be available to all (command line and finder)
applications running under OSX ?
2) What might be the reason why my bundle based environment does
not work?
Thank you
-Dieter
_______________________________________________
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
_______________________________________________
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