Updated launchd Property List File for Synergy
Published on 30 Apr 2012 · Filed in Information · 123 words (estimated 1 minutes to read)After posting my article on running the Synergy server automatically on OS X Lion, a reader added a comment suggesting that it wasn’t recommended to use a shell script to launch a process via launchd. I haven’t been able to find any information to back up that recommendation, but I did create a new launchd property list file that doesn’t require (or use) a shell script to start synergys.
Here’s the updated property list file:
<?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>org.synergy-foss.synergys</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/synergys</string>
<string>-f</string>
<string>-c</string>
<string>/etc/synergy.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>Synergy server daemon</string>
</dict>
</plist>
After making the changes and rebooting, everything seems to work just fine. Thanks for the tip!