I have one Cocoa application and one launch agent. Launch agent launches application using
launchAppWithBundleIdentifier: method call.
Inside my application I want to check application is launched by user(Normal launch) or is it launch agent launching my application.
It seems like you should be able to send an Apple Event via the additionalEventParamDescriptor: parameter of the launchAppWithBundleIdentifier: call and then receive that in your app so you know it’s your agent launching you.