Skip to main content
Question

Need help with script to stop Citrix Workspace loading upon bootup


Forum|alt.badge.img+6

Is anyone out there willing to provide a script that can be used in a policy to prevent Citrix Workspace to open every time you log in to the device?  I came across this post and removing the 4 items does instead stop this from happening.  I'm just not that handy with creating scripts.

 

Thanks in advance.

 

Jim

 

7 replies

scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • September 8, 2022

I just did something like this for our users with another app.

I'll look for the script and see if you can alter it to make it work for you.  You need to do two things with the script:

1) Unload the agents/daemons

2) Delete the above after unloading


mvu
Forum|alt.badge.img+20
  • Jamf Heroes
  • 881 replies
  • September 8, 2022

Little annoyed that Citrix Workspace did this in one of their last 2 updates. Especially with that big Citrix banner after a reboot. I mean we get it: You're installed and alive.


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • September 8, 2022
scottb wrote:

I just did something like this for our users with another app.

I'll look for the script and see if you can alter it to make it work for you.  You need to do two things with the script:

1) Unload the agents/daemons

2) Delete the above after unloading


Here's the script below.  You can see the ONE item I'm addressing here.  You would replace those with your items in the list.  Give it a shot locally and see how it goes...

#!/bin/bash # Get the current user - https://scriptingosx.com/2020/02/getting-the-current-user-in-macos-update/ loggedInUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) # Get the ID of the current user userID=$(/usr/bin/id -u $loggedInUser) # Bootout the Launch Agent /bin/launchctl bootout gui/$userID /Library/LaunchAgents/net.eaacloop.eaaclient.plist # sleep sleep 3 # Remove the LaunchAgent after unload rm -rf /Library/LaunchAgents/net.eaacloop.eaaclient.plist

scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • September 8, 2022
mvu wrote:

Little annoyed that Citrix Workspace did this in one of their last 2 updates. Especially with that big Citrix banner after a reboot. I mean we get it: You're installed and alive.


Yeah, honestly, I wish apps would just have a pref to load at login or not.  Some do, and that's the way it should be.

I don't like when dev's think they should litter my machines with more time-wasting cr@p!


  • 0 replies
  • September 28, 2022

I did it in this way:

Show content

#!/bin/bash
# Path= /Library/LaunchAgents/com.citrix.ReceiverHelper.plist
#
echo "looking for '/Library/LaunchAgents/com.citrix.ReceiverHelper.plist'"
if [ -f /Library/LaunchAgents/com.citrix.ReceiverHelper.plist ]; then
echo "found '/Library/LaunchAgents/com.citrix.ReceiverHelper.plist'"
echo "deleting '/Library/LaunchAgents/com.citrix.ReceiverHelper.plist'"
rm -f /Library/LaunchAgents/com.citrix.ReceiverHelper.plist
exit
fi
echo "'/Library/LaunchAgents/com.citrix.ReceiverHelper.plist' not found, nothing to do"
exit


mvu
Forum|alt.badge.img+20
  • Jamf Heroes
  • 881 replies
  • September 28, 2022

 

Worked for me. Thanks.


Forum|alt.badge.img+8
  • Valued Contributor
  • 106 replies
  • October 23, 2022

Just had to fix this. While above worked I went another direction based on above and YT video here . Just in case  an update or something tries to replace the file if it sees it missing.

using plistbuddy:

 

/usr/libexec/Plistbuddy -c 'delete "ProgramArguments:0" ' /Library/LaunchAgents/com.citrix.ReceiverHelper.plist

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings