CleanMate

All guides · macOS · Updated

Wrong app icons, blank Quick Look previews and a crowded Open With menu: fixes on a Mac

Why a Mac shows wrong or generic icons, blank Quick Look previews or duplicate entries in the Open With menu, which three caches sit behind it, the commands that fix each one, and the Maintenance tasks CleanMate runs for you.

Download for macOS — free and open source

CleanMate Uninstaller on a Mac with the Extensions list, where a Quick Look plug-in whose app is gone is marked App removedCleanMate Uninstaller on a Mac with the Extensions list, where a Quick Look plug-in whose app is gone is marked App removed

A document shows the generic white page instead of its app’s icon, Quick Look draws nothing or a stale thumbnail, and the Open With menu lists the same app three times, twice under a name you deleted long ago. Nothing is broken: three caches and one database have drifted out of date. Here is what each one does and how to rebuild it — by hand, or with one click each in CleanMate.

What sits behind each symptom

Fix it by hand

Restart Finder and Dock first — a surprising number of icon glitches are just a stale process, and macOS starts both again at once:

killall Finder
killall Dock

If previews are still blank, wrong or slow, restart Quick Look and clear its thumbnail cache:

qlmanage -r        # restart Quick Look
qlmanage -r cache  # clear the thumbnail cache

For wrong or blank icons in the Dock and Finder, delete the icon cache files in your own user cache folder and restart the Dock. getconf DARWIN_USER_CACHE_DIR prints the folder; the files are com.apple.dock.iconcache, com.apple.iconservices and com.apple.iconservices.store. Never touch /Library/Caches for this: it belongs to the system and all users, and changing it needs an administrator password. After deleting, run killall Dock again.

To clear the duplicate and outdated entries out of Open With, rebuild the Launch Services database with the standard lsregister tool, then restart Finder:

LSREGISTER=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
"$LSREGISTER" -gc
"$LSREGISTER" -r -f -apps local,system,user
killall Finder

The database rebuilds itself in the background; the menu is fresh the next time you use it.

What not to do

How CleanMate does it

CleanMate’s Maintenance module (⌘8) runs the common fixes for you, each with a Run button and the tool’s output underneath, and none of the tasks needs an administrator password or removes your files:

A preview that stays broken can also be a Quick Look plug-in left behind by an app you removed. CleanMate’s Uninstaller lists such extensions in your Library and marks them App removed, so you can move the leftover plug-in to the Trash. See all macOS features.

Related: clear the cache on a Mac, which ~/Library folders are safe to delete and what System Data is. CleanMate is free and open source: download it.

FAQ

Why did my icons turn generic after I deleted an app?

The icon cache still holds the old drawing, or Launch Services resolves the document to the app that is gone. Restart the Dock; if that is not enough, clear the icon cache or rebuild Launch Services.

Is rebuilding the Launch Services database safe?

Yes. It is a rebuilt index of apps already on the disk; macOS maintains it the same way in the background. Your documents and settings are not touched.

Do I need to log out or restart the Mac?

No. Every fix here restarts the process that draws from the cache (Finder, Dock, Quick Look), which is faster and enough.

Will fixing the caches delete anything of mine?

No. Icon caches, thumbnails and the Launch Services database are all rebuilt from what is on the disk; only the stale copies are removed.

Skip the commands

Open source — star it on GitHub: CleanMate for macOS

How CleanMate decides what is safe to remove →