Leopard LaunchServices Database - How do I rebuild it?
The LaunchServices database, among other things, associates file types with the apps used to open them. If you right-click on a file and choose “open witih”, this database determines what options show up. Yay! Unfortunately sometimes it gets hosed.. under Tiger i used to get a lot of duplicate entries or whatever.
My problem now is due to Parallels and its SmartSelect feature. it allows you to have OS X show you options for Windows or OS X apps to open files with - something I really didn’t want. I do not WANT visual studio even KNOWN about by the leopard LaunchServices database, for example. Or IE 7. Or notepad. Or whatever. Unfortunately for Parallels (and me), disabling this did not rebuild my launchservices db. But eventually I got to the point of clean up where the following terminal command to rebuild the launchservices db did the trick (note: this needs to be all one online with no returns):
Update: Joe points out in the comments he found my path to the command didn’t work. I checked on the Apple site and also in my own terminal window, and here’s the command with the path I see to lsregister (for Leopard, different for Tiger):
/System/Library/Frameworks/CoreServices.framework/Versions/A
/Frameworks/LaunchServices.framework/Versions/A/Support
/lsregister -kill -r -domain local -domain system -domain user
Again, all on one line with no spaces except where obvious in the command above.
I’m really only putting this here so I can easily find it again, but I hope it benefits a lot of you. Hehe.
PS. The Tiger way of doing this is detailed here.
And btw, I’ve now switched to VMWare Fusion.




















