如何向登录项目添加沙盒应用程序 [英] How to add a sandboxed app to the login items
问题描述
如果用户选择该选项,我希望我的应用自动启动。我一直在使用的方法不允许在沙盒应用程序中。
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 achieve that? Is there a simple tutorial with sample code to active that?
我发现这个教程,但它不适用于我: http://www.delitestudio.com/2011/10/25/start-dockless-apps-at-login-with-app-sandbox -enabled /
I found this tutorial, but it does not work for me: http://www.delitestudio.com/2011/10/25/start-dockless-apps-at-login-with-app-sandbox-enabled/
这是一个很标准的事情,我不明白为什么没有示例项目可用。
It is a pretty standard thing to do, I don't understand why there is no example project available.
UPDATE:
我上传了一个示例项目: http://ge.tt/6DntY4K/v/0?c
I uploaded a sample project: http://ge.tt/6DntY4K/v/0?c
推荐答案
您应该成功使用这个(免责声明:my)教程,包含示例项目。
更新:我已经测试了您上传的示例项目:与我很好,没有任何修改,并登录成功启动。唯一的窍门是AutoStart.app文件必须放置在/ Applications或〜/ Applications文件夹中,以便在登录时成功启动。这是必要的,无论应用程序是否沙盒。但是,没有关于这方面的官方文件,恐怕。
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.
这篇关于如何向登录项目添加沙盒应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!