Jump to content

Better uninstall


Mark Jaffe

Recommended Posts

Looking at CapnJoe's script, I realized it would just not work as posted, especially if invoked with "sudo .\UninstallSynergy2.sh" command, since the backslash has a different meaning in bash shell on MacOS. If you run it as shown, the $USER variable becomes 'root' which will NOT remove your ~/Library/ directories as you intend.

Here's a better version of the script:

#!/bin/bash

sudo launchctl unload /Library/LaunchAgents/com.symless.synergy.synergy-service.plist
sudo rm -rf /Applications/Synergy.app
sudo rm -rf /Users/$USER/Library/Preferences/Symless
sudo rm -rf /Users/$USER/Library/Synergy
sudo killall -u $USER cfprefsd
sudo shutdown -r now

The first line tells the shell what program is used to run the script. Just invoke it as "./UninstallSynergy2.sh" or whatever you named it, you'll be prompted once for a password. Your system will reboot at the end.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...