Skip to content

Instantly share code, notes, and snippets.

@ismyrnow
Created May 5, 2017 19:28
Show Gist options
  • Save ismyrnow/e92c6010cda9325b2d8811387a05f224 to your computer and use it in GitHub Desktop.
Save ismyrnow/e92c6010cda9325b2d8811387a05f224 to your computer and use it in GitHub Desktop.
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
@fantouch
Copy link

fantouch commented Mar 6, 2022

Works fine !

@vt-rli
Copy link

vt-rli commented Mar 17, 2022

Thank you! It works for macOS 12.3!

@adriel
Copy link

adriel commented Oct 25, 2022

this fixed my files set to open with VLC having generic white icons :D

I also did this brew cask install qlvideo >D

The OP didn't help me, but installing qlvideo does work as a workaround, on macOS 13.0 Ventura. (though the command has changed)

brew install --cask qlvideo

@Gabriele-LS
Copy link

Gabriele-LS commented Apr 30, 2023

It worked for me. Thanks for sharing.

I'm on a MacBook Pro 16-inch 2023 (M2 Max) with macOS 13.3.1.

@tmcintos
Copy link

Worked for me on 14.5 beta on M2 MBA. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment