synergy2 on Leopard

Having upgraded to Leopard, I found that synergy2 wasn’t working. It’s an application that lets you control multiple machines from a single keyboard and mouse and I use it quite a lot at work.
More information about Synergy2 can be found at http://synergy2.sourceforge.net/
After the upgrade to Leopard (and even after a fresh reinstall) it would start up and then a crash would be logged in /var/log/system.log; searching in Google resulted in a hit that mentions using launchd to start it up and having set it up like that I found that it actually works fine!
The forum post is at http://sourceforge.net/forum/forum.php?thread_id=1848423&forum_id=199580

In case the above post ever gets removed/deleted, the following works for Tiger and Leopard.

  1. Create a file (including directories if necessary) ~/Library/LaunchAgents/synergyc.plist with the contents shown below.
  2. launchctl load ~/Library/LaunchAgents/synergyc.plist
  3. launchctl start com.synergyc

This is a one-time operation. I’m not sure if the file needs to be left alone, but it would be a good idea in case you need to set it up again after a reinstall.

Contents of synergyc.plist are as follows, but make sure you replace CLIENTNAME and SERVERIP with the correct values.

<?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.synergyc</string>
<key>ProgramArguments</key>
<array>
<string>/Users/username/bin/synergyc</string>
<string>-f</string>
<string>-n</string>
<string>CLIENTNAME</string>
<string>SERVERIP</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>