Oh, Stupid Finder

stupid finder

Somehow it got to be Friday again, which means it's Report an Apple Bug Friday again. Since last week's was a bit of a doozy, we'll downshift and pull out something generic and arbitrary (Because it's not lacking for material) from an app we all use, the Finder.

One of the things that's fascinated me when it comes to Mac OS X has been the Finder's ability to screw up the most mundane of things, over and over, almost as though it's in its nature. I'm not talking about say, completely locking up your Mac when a server disconnects, but rather something as simple as remembering what size a window should be, or what you see in the following screenshot...

Ignore the horrid sideways-scrolling label selection system which requires you to move your cursor precisely horizontally with a leeway of all of 5 pixels, which was greenlighted by an executive who'll remain nameless for now but used to be a programmer and now is in charge of things like broad-ranging user interface decisions rather than someone who has heard the term paper prototyping, as well as your desire to email me pointing out this is one hell of a run-on sentence.

Also ignore how the contextual menu now (with 10.3, I believe) includes the full name of the file, making the contextual menu a completely different size depending on the file name, which means muscle memory is nonexistent. So much stupidity in one contextual menu, but for now just focus on the fact that OS X believes I have three iTunes installed, and four QuickTime players. In reality, I have one of each installed.

This is a problem with something in OS X called LaunchServices, which is responsible for a whole range of things on OS X, including a whole slew of very scary security vulnerabilities over the last while. In this case, LaunchServices has a database which it adds to when an application registers with the system in some way, as well as what that application claims it can handle.

For reasons that seem to be quite arbitrary -- as is the case with most things with the Finder -- it has a habit of corrupting itself. People have told me they've seen this going back for awhile sporadically, but 10.4 was the first time I've seen it get this bad for me. Before 10.4, it was primarily about the Finder being randomly unable to remember what icon a file or folder was supposed to have over time, but now -- for the life of me -- I can't get it to understand I just have one of these things installed.

From what I can glean, LaunchServices has become voodoo even to Apple's own engineers, and at this point they aren't so much engineering it as prodding and hoping it wanders in the general direction of where they'd like it to go. No one really seems to know what's causing it to corrupt its database or get confused, but having multiple drives connected to one's system with any frequency seems to be a major trigger.

And yes, it can start to make the "Open With..." feature all but worthless, as consider what you're presented with when you're trying to open a text file or an image file...

Actually, "Open With..." becoming all but worthless is really just exacerbated by having quadruples of everything, the Finder was already walking around with its head in its ass if it thinks I'm going to want to open a file ending in .txt with Unsharp Mask.exe. It doesn't help that there are a gazillion little Adobe Action droplets hanging in there when I'm just wanting to open an image in Photoshop or JView, either...

When you write an app for OS X, one of the things you have to do is tell the System what file types it can accept. This is why sometimes you'll try to drag a file to an app and the System won't let you -- the author didn't specify the app could handle the type of data you're trying to throw at it.

Now, if Adobe is telling their droplets they can open a .txt file in this case instead of the Finder being stupid, that's on them. However, they're all over the image example above also which is something they can't -- as far as I'm aware -- do much of anything about if they want them to be able to accept images being dropped on them. With no way for the user to tell the system it's stupid to have those options in there, you're stuck with scrolling through a few pages of applications till you find what you want.

Anywho, the buginess in LaunchServices is made all the worse because there isn't -- again to my knowledge -- a built-in way for a normal user to fix the problem. The built-in Disk Utility won't fix it, nor will other disk utilities... You have to resort to terminal commands to either delete the database completely or try rebuild it. I've seen users reinstall over this, simply because they didn't know any better and thought it was indicative of a larger problem with their install.

There are some third-party utilities you can download now which will do it, but they generally don't fix the problem long-term, because if you happen to have the usage patterns that trigger it the bugginess isn't something you can fix. You can rebuild the database, and it might fix it for awhile, or even just make it less severe, but it'll come back soon it enough.

yummy alcohol posted button Posted by drunkenbatman
    September 02, 2005, at 06:19 AM


Comments (48)




Post a comment



Anonymous comments are allowed, but please enter something for a name.

And do endeavor to appear sane.









Remember personal info?