Skip to content

Instantly share code, notes, and snippets.

@glimpsed
Created June 13, 2018 10:01
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 glimpsed/1621df7db753de6198747d8c34e92a81 to your computer and use it in GitHub Desktop.
Save glimpsed/1621df7db753de6198747d8c34e92a81 to your computer and use it in GitHub Desktop.
Fix broken Spotlight / Time Machine (white pointer on black screen on shutdown and/or restart)
The problem is not with Spotlight, but with Launch Services. There are two steps to solving the problem:
sudo mkdir /private/var/db/lsd
sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network
The first one creates the folder that the launch services daemon needs to store the database. That’s why LaunchServices is getting an -10822 error, because it can’t create the database, so it keeps resetting the connection. The second command tells launch services to kill the old database and create a new one from scratch. Voila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment