【发布时间】:2009-09-24 09:06:43
【问题描述】:
我正在尝试编写一个小型 Cocoa 应用程序来帮助我管理时间,我希望它在启动时检查是否已经有一个启动条目,如果没有,则添加一个条目。
写入启动文件的正确文件夹是什么,和/或是否有一种特殊的可可方法来检索正确的文件夹是什么(即以与检索用户文档文件夹相同的方式)或者您只是假设其中之一以下硬编码位置?
手册页列出了我可能想要使用的以下可能的 URL ~/Library/LaunchAgents?
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the administrator.
/Library/LaunchDaemons System-wide daemons provided by the administrator.
/System/Library/LaunchAgents Per-user agents provided by Mac OS X.
/System/Library/LaunchDaemons System-wide daemons provided by Mac OS X.
【问题讨论】:
标签: objective-c cocoa launchd