Re: starting an app with execve()
Re: starting an app with execve()
- Subject: Re: starting an app with execve()
- From: Devon E Bowen <email@hidden>
- Date: Wed, 23 Jun 2004 07:26:32 -0400 (EDT)
>
Cd'ing to the dir should also work. I would recommend this because
>
otherwise I believe the full path will show up as the process name, and
>
further, embedded frameworks are loaded relative to the executable
>
path, i.e. "../../Resources/Frameworks/". But I don't know how flexible
>
the system is, maybe it still work...
The process that I'm starting is the same as the process that is doing
the starting. In other words, a program is restarting itself. Since
I never change the working directory, the current directory is already
correct unless Cocoa messes with it for some odd reason. Seems to
be working, though. Although if the working directory is correct, this
would seem to indicate that one is required to use the full path as
argv[0]. Looking at ps output, it appears that this is the norm in MacOS
so maybe that's true.
Thanks for the comments.
Devon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.