I have installed citrix receiver on my home macbook. It auto starts on login yet it does not show an entry in the Login Items tab under the Users and Groups pane of System Preferences. How can I disable the service from starting on login?
Like @cheezsteak mentions, starting and stopping is done through
launchctl. The process below allows you to stop autostart at boot.
First, I fetched a list of all "citrix" processes that run on startup:
launchctl list | grep citrix
In order to remove them completely from starting up automatically, I use the following commands:
launchctl remove com.citrix.ServiceRecords
launchctl remove com.citrix.ReceiverHelper
launchctl remove com.citrix.AuthManager_Mac
The only issue now is that when you open the Citrix Receiver application, you may get something like the following error:
Unable to connect to the citrix AuthManager service
To fix this, you manually need to start the services again:
launchctl load /Library/LaunchAgents/com.citrix.ServiceRecords.plist
launchctl load /Library/LaunchAgents/com.citrix.ReceiverHelper.plist
launchctl load /Library/LaunchAgents/com.citrix.AuthManager_Mac.plist
Unfortunately, this is a bit of a cumbersome process. Especially to repeat it every now and then. But I've made it simple as an Automator task, which runs the mentioned commands to start the service and immediately after start the Citrix Receiver.
Actually, I have no doubt that it is relatively easy for Citrix to make this configurable as a preference. There is actually a discussion on their forum about this, but it appears dead and without response. For the time being - and as mere principle - I choose the hard way myself.
For further reference about launchctl, this AskDifferent answer is quite helpful.
The following services are are started at login by
You can use
launchctl to stop the processes like so
launchctl stop com.citrix.AuthManager_Mac
However I am currently unable to prevent launchd from autoloading these services through
launchctl. It is irrelevant because the Citrix Receiver App will not start those services when it starts and will therefore not work if they were stopped or disabled.
I did notice these services are unneeded if using the the companies web app. Considering that one can just delete the above .plist files and only use the web app.
Creating an app in Automator with shell script works fine to unload at startup without removing the plist files.
You have to add :
launchctl unload –w /Library/LaunchAgents/com.citrix.AuthManager_Mac.plist
launchctl unload –w /Library/LaunchAgents/com.citrix.ReceiverHelper.plist
launchctl unload –w /Library/LaunchAgents/com.citrix.ServiceRecords.plist
Add this app to run at startup and it'll solve the error when you open the Citrix Receiver application.
I mainly followed the answer from the Citrix Discussion macOS: prevent workspace/receiver from starting at login/boot.
/Library/LaunchAgents, I changed the name of
com.citrix.ReceiverHelper.plist_bujust to keep a copy for the future.
com.citrix.safariadapter.plistand set the value "RunAtLoad" to "false".
I removed Citrix from my mac as it was so annoying. I had to run the code above in Terminal in order to kill the live Citrix first. There were still error messages coming up and I found that there were files with citrix in their name in Library/LaunchAgents and Library/LaunchDaemons, I deleted those, Citrix seems gone from my computer.
For those who have to live with Citrix, I am suggesting keeping the app but getting rid of those launch files anyway to avoid seeing this come up at startup.
This has been annoying me forever as well. I tried the above steps via Terminal & to delete the Plists for citrix but would not stop auto launching on my MacBook Air.
The following Citrix Uninstall worked for me & allowed the Citrix Desktop application to be deleted.
The Uninstall seems to do a reasonable cleanup of itself as well.
Was having the same problem with my new work mac, (oddly enough my old one did not do this) where I really am not supposed to be messing around with system files etc. and do occasionally need to use the app. It looks like as of yesterday(!?) the option to launch at startup or not, is finally a built in toggle in the menu app:
Unfortunately the version on my mac is 23.01.1.60 (2301), and tells me there are no updates. Maybe in the next couple of days...