[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How to obtain GNUstep environment values without openapp or GNUstep
RE: How to obtain GNUstep environment values without openapp or GNUstep.sh?
Mon, 4 Dec 2006 15:46:11 +0100 (CET)
What do you mean by 'enviromental' variables ? Which variables exactly
do you need and why ? ;-)
To locate the application binaries, you should use gnustep-base's NSBundle
methods to locate stuff in the various domains.
One you have found the application binary, you just execute it. Give to
the application binary the same environment that your process is using,
and it will work. :-)
From: Quentin Mathé <address@hidden>
Sent: Monday, December 4, 2006 2:56 pm
To: "GNUstep Discuss" <address@hidden>
Subject: How to obtain GNUstep environment values without openapp or
I currently try to write a daemonizer process that is in charge of
launching GNUstep applications or tools.
I have an important constraint, this daemonizer must be started
directly (I cannot launch it with openapp or after sourcing GNUstep.sh).
My problem is the following one, when the daemonizer starts a process
I would like to do it without relying on 'openapp' because tracking
processes become a lot more complex when using NSTask with 'openapp'
as the launch path and the real application path as an argument of
Basically what I'm looking for is a method that would return a
dictionary of GNUstep environment variables (identical to the ones
set in the shell by 'openapp' or GNUstep.sh), then I could avoid
openapp by setting the environment variables directly on each NSTask.
By reading gnustep-make code and -base documentation, I observed they
might depend on the values encoded in openapp or GNUstep.sh itself.
Then the only way I can think of would be to start a dummy process
with openapp (or which modify its environment by soucing GNUstep.sh)
then collects its environment variables with NSProcessInfo.
May be there is a simpler way to achieve the same result?
Discuss-gnustep mailing list