Re: starting an app with execve()
Re: starting an app with execve()
- Subject: Re: starting an app with execve()
- From: Allan Odgaard <email@hidden>
- Date: Wed, 23 Jun 2004 12:57:19 +0200
On 23. Jun 2004, at 11:44, Devon E Bowen wrote:
2004-06-23 11:37:44.201 MyApp[1546] No Info.plist file in application
bundle or no NSPrincipalClass in the Info.plist file, exiting
So apparently, Cocoa requires some state such as an environment
variable
or current directory or something that I don't know about. [...]
I believe it's enough simply to do: chdir("MyApp.app/Contents/MacOS")
before running the executable, i.e. after fork() but before execve().
_______________________________________________
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.