Re: LSEnvironment
Re: LSEnvironment
- Subject: Re: LSEnvironment
- From: Dieter Oberkofler <email@hidden>
- Date: Tue, 28 Nov 2006 10:28:22 +0100
Wayne,
It does work when using the environment.plist file in the .MacOSX
directory but this makes the installation process a lot more
complicated and dependent on the user who logs on.
I would actually also not know on how to "automatically" set any
environment variables from within the Apple Installer.
Thank you for your help,
-Dieter
On 28.11.2006, at 05:18, Wayne Hasley wrote:
Dieter,
You can set the environment variables used system wide by using a
folder names .MacOSX (note the "dot" at the start of the name,
making it invisible) in your home folder. This folder has one file
named environment.plist in it,
Hope this helps
Wayne
This folder contains a file names
On Nov 27, 2006, at 2:06 AM, Dieter Oberkofler wrote:
Chris,
Your are right but I have better understood in the meantime now
this should work and still believe that something is not running
as expected (documented).
To make sure that I'm heading in the wrong direction:
1) If I start an application from the finder by double clicking
the bundle icon, the environment variables in the LSEnvironment
key should be used for the application!
2) If I start the same application from the shell by starting the
binary in the Contents/MasOS folder within the application the
LSEnvironment will not be used!
If the above statements are correct, this is exactly what I'm
trying to do but somehow 1) does not seem to work for me.
It does work when the app is launched from XCode and the
environment variables are set in the Executables inspector and it
does work if the environment variables are set for a user session
by setting them in the ./MacOSX/environment.plist configuration
file but it does NOT work when simply starting an application.
All I'm trying to do is to prepare a Oracle based application to
be packaged for client installation and a set of environment
variables must be set for Oracle to be working. To make it easy to
install (I did not find any simple way to automatically set the
environment in the environment.plist file) i would like to set
them in the application bundle itself.
If there is another way to do this, I would also be happy to
follow a new lead on how to solve my problem.
Thank you and cheers,
-Dieter
On 25.11.2006, at 22:26, Chris Espinosa wrote:
On Nov 25, 2006, at 11:33 AM, 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.
Didn't you ask this question in May 2005? The answer then was
that your plist looked correct, but if you were trying to launch
your application other than from a Launch Services client (for
example, debugging it in Xcode, launching it from Terminal, or
having it launched for you by some other app that does not use
Launch Services) the plist is ignored.
http://lists.apple.com/archives/xcode-users/2005/May/msg00613.html
If you want environment variables in an app launched by Xcode,
use the Executables inspector.
Chris
_______________________________________________
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