1
isbase 2016-04-22 23:10:28 +08:00 via Android
设置-用户-管理登录项
|
2
rashawn 2016-04-23 01:14:25 +08:00
实在不行就开机启动 iterm iterm 启动 aria2c
|
3
Wao 2016-04-23 04:29:20 +08:00
自己用 Automator 写了个小脚本程序,然后添加到开机启动项里
|
4
Valyrian 2016-04-23 05:49:17 +08:00 via iPhone
没参数怎么运行,/Library/LaunchDaemon 里的是系统启动完运行的,根本看不到用户 home directory 的.aria2/aria2.conf
需要登录完运行的进程,放到~/Library/LaunchAgents |
5
ETiV 2016-04-23 06:06:20 +08:00 via iPhone
光放进去是不行的,还得 lanchctl load 一下
具体可以 Google 学习一下 os x lanchd |
6
Bardon 2016-04-23 07:11:11 +08:00
扔到 ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/xxx.plist |
7
mhqschen OP @Wao 求下脚本~
@Bardon 试了下,还是不行 T.T 改了下内容,这个 plist 文件本身 OK 么? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>Aria2c</string> <key>KeepAlive</key> <true/> <key>RunAtLoad</key> <true/> <key>ProgramArguments</key> <array> <string>/usr/local/Cellar/aria2/1.21.0/bin/aria2c</string> <string>--D</string> </array> </dict> </plist> |
8
n6DD1A640 2016-04-23 11:24:18 +08:00
推荐用这个软件写启动服务, http://www.soma-zone.com/LaunchControl/
|
9
Wao 2016-04-23 11:40:05 +08:00
|
10
bazingaterry 2016-04-23 11:47:54 +08:00
4L 正解
|
11
vizards 2016-04-23 12:35:19 +08:00
拿 automater 写的
https://userscloud.com/aonlutov2y36 在偏好设置-用户与群组-登录项里面把这个 app 添加进去就好~ ![]( https://ooo.0o0.ooo/2016/04/22/571afb64e7234.png) |