Run at login startup or boot
Closed this issue · 0 comments
FossPrime commented
This will work at login, nothing can work at boot on Mojave :/
com.johndoe.wemessage.plist
<?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>com.johndoe.wemessage</string>
<key>ProgramArguments</key>
<array><string>/Applications/weServer/run.command</string></array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
cd ~/Library/LaunchAgents/
Throw a link to it here ln -s ~/git/johndoe/macos/com.johndoe.wemessage.plist
launchctl load com.johndoe.wemessage.plist
Under settings/privacy/accessibility allow run.command
to control the computer.
Remember to unload and reload after you make changes to the plist.
You can use ssh remote forwarding with a server you own and http://www.zenspider.com/ruby/2011/11/ssh-tunneling-via-osx-s-launchctl.html to have it work anywhere