Click on a .ICO file using file manager. See its properties, mime type of the file is defined as application/octet-stream. Expected: Its mime type should be image/x-ico.
In freedesktop.org.xml.in file, mime type for .ico is mentioned. But neither the Magic string is associated for .ico files, nor .ICO is listed. So the file system is not able to detect its mime type peroperly. Hence file manager is not able to open the file. Adding the Magic string for .ico file resolves the problem. Attaching the patch which provides the magic string for .ico files.
Here is the Magic string for .ico files: <magic priority="50"> <match type="string" value="\x00\x00\x01\x00" offset="0"/> </magic>
I think the real problem here is bug #732. Archana, your magic pattern would be a helpful addition, but given its value, I'm afraid of getting too many false positive with it. I looked http://www.daubnet.com/formats/ICO.html for the ico file format, and I'm not sure it's really easy to make a more specific magic pattern :-/
Marking as a dup per teuf comment. Please correct me if this is wrong. *** This bug has been marked as a duplicate of 732 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.