83
33
When I ls
my Desktop from terminal (by using ls ~/Desktop
), I see a file named Icon?
. As far as I can tell, it's empty (nano Icon?
shows nothing). It doesn't show up on my actual Desktop, and open Icon?
shows the Finder alert
This item is used by Mac OS X and can't be opened
Here is the output from mdls Icon?
:
kMDItemContentType = ""
kMDItemFSContentChangeDate = 2009-09-23 13:32:52 -0600
kMDItemFSCreationDate = 2009-09-20 07:27:46 -0600
kMDItemFSCreatorCode = "MACS"
kMDItemFSFinderFlags = 16384
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 1
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "Icon "
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 0
kMDItemFSTypeCode = "icon"
Does anyone have an idea as to what this is?
6The real question is: is there a way to stop the operating system from creating these damn files in every directory? It really annoys me that they show up in Dropbox. – JeremyKun – 2015-03-20T23:02:31.770
1@JeremyKun 2017 here and I'd love to know the answer to this. – escapecharacter – 2017-10-17T14:50:58.213
These files are NOT created automatically "in every directory" unless you have some nasty software that causes their creation. Also - they may annoy you, but they have their functionality too. This the implementation of "Custom user-icon" in MacOS. If user elects to paste any image of his liking to serve as the icon of some file or directory - it will end up as a hidden iCon? file. Deleting them simply removes the custom icon. – Motti Shneor – 2018-11-20T12:10:16.177