3

enter image description here

I have installed Unity 3d Linux version, but the icon associated with the .unitypackage is not showing correctly. It always shows the wine icon. I have totally removed Wine, but the icon is still showing. I really appreciate any help.

5
  • Can you paste the output of file -b --mime-type FILENAME? Mar 2, 2016 at 14:42
  • application/gzip
    – Praveen
    Mar 9, 2016 at 16:49
  • How did you installed Unity 3D ? the mimetype is not correct; try asking in Unity3D forum Mar 9, 2016 at 21:54
  • downloaded from forum.unity3d.com/threads/…
    – Praveen
    Mar 19, 2016 at 5:10
  • Oh sorry, Mime type is : application/x-wine-extension-unitypackage
    – Praveen
    Mar 23, 2016 at 13:11

1 Answer 1

2

To get the file extension you can use:

file -b --mime-type FILENAME

in this case : application/x-wine-extension-unitypackage

After that, copy the icon you need to use to /usr/share/icons/ICONTHEME in the mimetypes folder with this file name application-x-wine-extension-unitypackage

Rebuild the icon cache using sudo gtk-update-icon-cache -f /usr/share/icons/ICONTHEME and the new icon will be used.

2
  • Thank you very much, successfully changed the icon. anyway still need to fix the mime type, up-voted :)
    – Praveen
    Mar 23, 2016 at 16:31
  • The mime type is related to the application you're using; Pantheon files (File manager) just shows the icon associated to the mimetype, maybe Unty 3D is not saving the files correctly. Trying reporthing that upstream. Mar 23, 2016 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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