- 如果想在系统启动时运行, 在/etc/rc.local里面创建你的shell script.
- 如果想在用户login前运行, 在用户的Account Preference面板里设置, 这个设置会保存在"~/Library/Preferences/loginwindow.plist" 文件里, 这个设置只影响这个用户. 复制或者移动到"/Library/Preferences/loginwindow.plist"将应用到所有的用户登陆.
- Create a launchd users agent, see Lingon for details.
在Mac OSX启动时运行程序的方法
最新推荐文章于 2024-04-23 10:04:40 发布