Skip to content

Instantly share code, notes, and snippets.

@takamii
Last active February 17, 2016 14:51
Show Gist options
  • Save takamii/3a75580afd5db35cf50e to your computer and use it in GitHub Desktop.
Save takamii/3a75580afd5db35cf50e to your computer and use it in GitHub Desktop.
iTeleport Connectが常駐するようにプロセス落ちていたら自動起動させる。~/Library/LaunchAgentsに入れておいて、launchctl load xxx.plist(フルパス)で起動させる。plist中のKeepAliveがtrueだと常駐モードになる。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.takamii.iTeleportLaunchd</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/iTeleport Connect.app/Contents/MacOS/iTeleport Connect</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
@kenyce
Copy link

kenyce commented Feb 1, 2016

質問です、~/Library/LaunchAgentsにcom.takamii.iTeleportLaunchd.plistを突っ込むだけでよいのですか?

@takamii
Copy link
Author

takamii commented Feb 17, 2016

コメントに今気づいた。。ゴメンなさい。
フォルダに突っ込んでからコマンドラインで以下を実行です。
launchctl load com.takamii.iTeleportLaunchd.plist
plistは実際にはフルパスで記述してあげてね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment