• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: starting an app with execve()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >starting an app with execve() (From: Devon E Bowen <email@hidden>)

  • Prev by Date: Re: starting an app with execve()
  • Next by Date: Re: (Command-)Option-Clicking a Window
  • Previous by thread: starting an app with execve()
  • Next by thread: Re: starting an app with execve()
  • Index(es):
    • Date
    • Thread