Re: Oracle environment variables in bundle
Re: Oracle environment variables in bundle
- Subject: Re: Oracle environment variables in bundle
- From: Markus Hitter <email@hidden>
- Date: Fri, 20 May 2005 00:07:51 +0200
Am 19.05.2005 um 06:00 schrieb Dieter Oberkofler:
I'm working on an large application that runs under Oracle and the
Oracle client needs a few environment environment variables to setup
it's configuration.
What's wrong with a configuration file, packaged into the app's bundle?
If you want to have it user configurable, I'd use Cocoa's built in
Defaults system.
Both should work fine and you won't have complaints from Mac users who
don't know what "CLI" stands for.
Finally I would like to ship the application bundle as it is to a
large number of clients but possible just changiung the environment
variables in one location without despite th efact if the application
is started from the finder, from a script, from the terminal or (this
seems not to be possibe at all) from within XCode during development.
I know, it's the habit of a few big apps in the Unix world to set up
configurations via enviroment variables. I've yet to see the advantage,
except for one-file tools like ls, mv, etc.
If you insist on using environment variables, you have to do it for
each type of launch individually, I'm afraid. Finder uses a file names
.OSXenvironment (or similar), bash uses .bashrc, csh/tcsh uses .login
and .cshrc and for Xcode you can set environment variables in menu ->
Project -> Edit active Executable.
HTH,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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