10 Jun
2011
10 Jun
'11
11:15 a.m.
On 2011 Jun 10, at 01:54, Nick wrote:
But what differs an application from a command line application? How launchd realizes it's an application? By presence of an application bundle? Of a plist? Instantiating NSApplication object? Some other ways?
That's an interesting question; I really don't know. Command-line tools can have embedded plists (and must, for code signing), but there are many differences which launchd could use. Most likely are the keys CFBundlePackageType=APPL and NSPrincipalClass=NSApplication.