Mark Jaffe 1 Posted November 16, 2017 Share Posted November 16, 2017 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. 1 Link to post Share on other sites
Kelvin Tran 142 Posted November 16, 2017 Share Posted November 16, 2017 @CapnJoe You may want to consider this as a possibility. Thank you for your effort in researching this, Mark. Link to post Share on other sites
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now