Created
January 14, 2018 01:42
-
-
Save Etheryte/d74cbd9c37b59b49c25a0c6121507fd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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