• 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: What alhorithm does the launcher follow while processing bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What alhorithm does the launcher follow while processing bundle?


  • Subject: Re: What alhorithm does the launcher follow while processing bundle?
  • From: Thomas Clement <email@hidden>
  • Date: Sun, 24 Oct 2010 20:12:27 +0200

On 24 oct. 2010, at 19:56, eveningnick eveningnick wrote:

> Hello!
> What operations does the "application launcher" (or launch services?
> who's responsible for launching bundles) when i doubleclick on a
> bundle? What happens when i open a terminal and go (CD) straight
> through MyApp.app/Contents/MacOS and launch the binary? Is there some
> source to read about these steps?
> (I would like to manually do all the steps that "Bundle Launcher"
> does, to understand the process - launching a process using low level
> posix calls, for better understanding :) )

The main difference is that LaunchServices talks to launchd which is then responsible for spawning the process in the correct context.
When you launch the binary through the Terminal, the new process will be a child of your shell process (such as bash).

One other difference is that LaunchServices will activate the app instead of launching it if the app is already running.
Also the Terminal bypasses some checks made by LaunchServices such as the LSMinimumSystemVersion and LSMinimumSystemVersionPerArchitecure info plist keys.

You can find some information here:
http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/LaunchServicesConcepts/


Thomas

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What alhorithm does the launcher follow while processing bundle? (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Re: fork/exec vs NSTask
  • Next by Date: Re: fork/exec vs NSTask
  • Previous by thread: What alhorithm does the launcher follow while processing bundle?
  • Next by thread: NSMutableURLRequest google my maps help
  • Index(es):
    • Date
    • Thread