Skip to content

Instantly share code, notes, and snippets.

@chrisfinazzo
Forked from marcoarment/quit-adobe.sh
Last active November 16, 2023 14:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisfinazzo/2c3ef042288585f716a2b341f6ceb6a5 to your computer and use it in GitHub Desktop.
Save chrisfinazzo/2c3ef042288585f716a2b341f6ceb6a5 to your computer and use it in GitHub Desktop.
Uninstalling Adobe stuff...faster.
#!/bin/bash
shopt -s nullglob
LOCALUSER=Chris # Change this for you, obviously
DISABLED_FILES_DIR=/Users/$LOCALUSER/.quit-adobe
# Kill unnecessary macOS system services that run Intel binaries on Apple-silicon systems
sudo killall -q -9 VisualizerService_x86
sudo killall -q -9 CarbonComponentScannerXPC
# Are any Adobe user-facing apps running? Assuming they begin with "Adobe ", e.g. "Adobe Audition 2022"
ps ax -c -o 'command=' | grep -F '^Adobe ' | grep -F -v 'Adobe Desktop Service' | grep -F -v 'Adobe Installer' > /dev/null
if [ $? -eq 1 ] ; then
# No Adobe user-facing apps running
if [ -e "/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex" ] ; then
mkdir -p $DISABLED_FILES_DIR
sudo mv -f "/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex" $DISABLED_FILES_DIR/ACCFinderSync.DISABLED-appex
sudo killall -q -9 ACCFinderSync
fi
for B in $(launchctl list | grep -F -v '^-' | grep -F -i adobe | awk '{ print $3 }') ; do
echo "launchctl stopping: $B"
sudo launchctl stop "$B"
echo "launchctl booting out: $B"
sudo launchctl bootout gui/"$(id -u)"/"$B"
done
for i in /Library/LaunchDaemons/com.adobe.* ; do
echo "launchctl unloading: $i"
sudo launchctl unload "$i"
mkdir -p $DISABLED_FILES_DIR/Library/LaunchDaemons
sudo mv -f /Library/LaunchDaemons/com.adobe.* $DISABLED_FILES_DIR/Library/LaunchDaemons/ 2>&1
done
for i in /Library/LaunchAgents/com.adobe.* ; do
echo "launchctl unloading: $i"
launchctl unload "$i"
mkdir -p $DISABLED_FILES_DIR/Library/LaunchAgents
sudo mv -f /Library/LaunchAgents/com.adobe.* $DISABLED_FILES_DIR/Library/LaunchAgents/ 2>&1
done
BADPROCS="AdobeIPCBroker AdobeCRDaemon 'Adobe Desktop Service' 'Adobe Installer' Adobe_CCXProcess.node com.adobe.acc.installer.v2 AdobeExtensionsService 'Creative Cloud Helper' crashpad_handler"
for PNAME in $(sudo killall -qdv -9 "$BADPROCS" | grep -F 'cmd:' | awk '{ print $2}' | sed 's/^cmd://g' | sed 's/,$//g') ; do
echo "killing: $PNAME"
sudo killall -q -9 "$PNAME"
done
else
echo "Adobe apps still running:"
ps ax -c -o 'command=' | grep -F '^Adobe ' | grep -F -v 'Adobe Desktop Service' | grep -F -v 'Adobe Installer'
fi
# How to move Adobe crap back if you need it:
# sudo mv $DISABLED_FILES_DIR/Library/LaunchAgents/com.adobe.* /Library/LaunchAgents/
# sudo mv $DISABLED_FILES_DIR/Library/LaunchDaemons/com.adobe.* /Library/LaunchDaemons/
# sudo mv $DISABLED_FILES_DIR/ACCFinderSync.DISABLED-appex "/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex"
# Check for Adobe processes
# ps ax -c -o 'command=' | fgrep -i adobe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment