Sunday, September 7, 2003

Disappearing Icons

Ok, so this is really confusing me.

For some reason both Photoshop Elements and Acrobat Reader have both managed to lose their icons on my powerbook. They're both just showing up with that default icon that you get when an application doesn't have it's own icon. Reinstalling the application doesn't seem to help, and neither does cleaning out the various cache directories in the system (~/Library/Caches, /Library/Caches, /System/Library/Caches...), or rebooting, or any combination of the three that I've been able to figure out.

Anyone have a clue how to fix this short of a clean reinstall of the system?

8 comments:

  1. Besides deleting the caches, you might try moving aside the ~/Library/Preferences/com.apple.LaunchServices.plist file.

    ReplyDelete
  2. well, you can always try adding an icon by copying it from another file.. you do a "get info" and then you can just copy and paste icons from one file to another. Is there a .ico file in the photoshop directory? Or did it get wiped out? I could always put the .ico from my photoshop online somewhere for you to grab, if you like. Or you could get one from http://www.xicons.com/ - there's a few photoshop icons there.

    ReplyDelete
  3. I've seen something this on my system at work from time to time. Other times, I'll have apps or folder randomly get the icon of another app/folder.
    Haven't had time to look into this yet, but I'll try Louis' suggestion.

    ReplyDelete
  4. Cool, some combo of removing /Caches and com.apple.LaunchServices.plist restored a missing icon on my laptop. I suspect it's the latter fixed the problem, since I think I tried clearing the Caches folders on my work system.

    ReplyDelete
  5. I believe that "fixing permissions" could take care of this... but I could be way off base. As I understand it, OS X has the habit of chmod'ing files on occasion, and this whole "fixing permissions" business corrects things. Not sure of the command-line for it, but I use a utility called Macaroni that puts in a cron to do it on a daily basis, as well as gives you a GUI in SysPrefs for manually calling it. If I wasn't so lazy, I'd know the command for it :-D
    I'd actually be interested in learning more about this. I don't recall BSD itself doing anything on a routine basis permissions-wise except for looking for SUID binaries.

    ReplyDelete
  6. Well, some combination of cleaning out caches, deleting the LaunchServices prefs, and 'repairing permissions' seems to have fixed it. I fail to see how permissions could have been an issue, and I bet it was the prefs that really did it, but I didn't feel like rebooting twice, so I just did them both at the same time.
    Thanks for all the suggestions everyone.

    ReplyDelete
  7. I don't think the problem is solved by Fix Permissions. I ran it a few times at work to try and resolve another problem (this time with CodeWarrior) and it didn't do anything to resolve the icon issue.

    ReplyDelete
  8. I've just had the same problem - and I know this is a long time since you posted but I thought it may be useful all the same - and a little link from the Apple mailing lists has helped.
    http://lists.apple.com/archives/mpw-dev/2003/Aug/msg00019.html
    Supposedly you just have to hold down Command + Option whilst relaunching Finder. I simply Force Quit'd Finder and then did the old key combination, and it works now... as far as I can tell!

    ReplyDelete