Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm not looking to hack resources or use SIMBL plugins, but I would like to be able to show custom icons in the Lion sidebar.

As far as I've understood custom icons on the folder no longer show up in the sidebar and the "built-in" icons that are there are hardcoded to resources pathed in: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources

However, I notice that the new versions of Dropbox now update the "Dropbox" sidebar icon to be a custom icon and it seems to be able to do this:

  1. Without using some code injection thing like SIMBL or needing root access
  2. Without the actual Dropbox process being running

So this leads me to believe that Lion sidebar icons are customisable, but this metadata is stored elsewhere?

xattr -l ~/Dropbox doesn't seem to list anything interesting:

com.apple.FinderInfo:
00000000  00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00000020
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

There's a good topic on this over at StackOverflow

The gist of how Dropbox does it is this:

  • injecting code into the mach_kernel so that it's not dependant on Dropbox running

So the answer is probably no, you can't do it without using code injection, but this may change in the future, or not as the case may be.

share|improve this answer
    
Looked at the video linked to in the comments there. Had no idea Dropbox was doing all this ugliness in the background for all kinds of Finder stuff. Feel quite differently towards it now, but as they said the result is: "it works" –  kLy Mar 28 '12 at 20:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.