Posted on 09-07-2022 12:13 PM
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
Posted on 09-08-2022 10:47 AM
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
Posted on 09-08-2022 10:51 AM
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
Posted on 09-08-2022 10:50 AM
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.
Posted on 09-08-2022 10:54 AM
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!
Posted on 09-28-2022 12:26 AM
I did it in this way:
Posted on 09-28-2022 07:19 AM
@Anonymous
Worked for me. Thanks.
Posted on 10-23-2022 01:05 PM
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