Skip to content

Instantly share code, notes, and snippets.

@Etheryte
Created January 14, 2018 01:42
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Etheryte/d74cbd9c37b59b49c25a0c6121507fd5 to your computer and use it in GitHub Desktop.
Save Etheryte/d74cbd9c37b59b49c25a0c6121507fd5 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Restart the Dock and the Finder once we're done
finish() {
killall Dock;
killall Finder;
echo "All done, reboot whenever it's convenient."
}
trap finish EXIT;
# Using -f in case you already removed one of the files
rm -f /Applications/League\ of\ Legends.app/Contents/Info.plist;
rm -f /Applications/League\ of\ Legends.app/Contents/Resources/Icon.icns;
# Clear the icon cache, see https://discussions.apple.com/thread/8098050
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \; >/dev/null 2>&1;
sudo rm -rf /Library/Caches/com.apple.iconservices.store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment