How to add a sandboxed app to the login items

前端 未结 3 1970
故里飘歌
故里飘歌 2021-02-01 05:31

I want my app to auto start if the user select the option. The methods I have been using is not allowed anymore in sandboxed apps.

I know I have to create a helper to a

3条回答
  •  囚心锁ツ
    2021-02-01 06:01

    You should succeed by using this (disclaimer: my) tutorial, sample project included.

    Update: I've now tested the sample project you've uploaded: It works just fine with me, without any modifications, and launch at login succeeds. The only trick is that the AutoStart.app file has to be placed in the /Applications or ~/Applications folder to be launched successfully at login. This is necessary regardless of whether the app is sandboxed or not. However, there's no official documentation on this, I'm afraid.

提交回复
热议问题