There’s not a lot to this one. Someone at Citrix made the decision that if you are on a Mac you will want the workspace app to open at login. I came across this script when looking for a solution to this. (It is ridiculous that we even need something like this.) Thanks to therealtomrose!

Quick and easy:

curl https://raw.githubusercontent.com/therealtomrose/citrix-workspace-killer/master/stop_citrix.sh | bash

The full script:

sudo find /Library/LaunchAgents -type f -name 'com.citrix*' -exec sh -c 'x="{}"; mv "$x" "${x}_bak"' \; 
sudo find /Library/LaunchDaemons -type f -name 'com.citrix*' -exec sh -c 'x="{}"; mv "$x" "${x}_bak"' \;
echo "Success: Citrix Workspace Disabled from Launching at Startup"