Skip to content

Instantly share code, notes, and snippets.

@CocoaBeans
Created February 11, 2013 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CocoaBeans/4758423 to your computer and use it in GitHub Desktop.
Save CocoaBeans/4758423 to your computer and use it in GitHub Desktop.
Rebuild the LaunchServices database
#!/bin/bash
LSREGISTER="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister"
echo "Rebuilding LaunchServices database..."
"${LSREGISTER}" -kill -r -all system,local,user
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment