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. :-) Thanks -----Original Message----- From: Quentin Mathé <[EMAIL PROTECTED]> Sent: Monday, December 4, 2006 2:56 pm To: "GNUstep Discuss" <[email protected]> Subject: How to obtain GNUstep environment values without openapp or GNUstep.sh? Hi, 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 the task. 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? Cheers, Quentin. -- Quentin Mathé [EMAIL PROTECTED] _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
