问题
I've found several guides (here, here, and here) on how to create a helper app to launch a main app on login. However, as my app is not distributed through the App Store, I do NOT want to enable sandboxing, and all of the solutions I've found require both the helper app and the main app to be sandboxed.
Is there any way to create a helper app to launch a main app at login WITHOUT requiring the use of sandboxing?
回答1:
You can use [NSWorkspace launchApplication:] to launch your app from your helper.
来源:https://stackoverflow.com/questions/30580965/create-a-helper-app-without-sandboxing