Ok,
I found this page which uses a python script to get info on a file:
https://help.ubuntu.com/community/Pytho ... /MIMETypes
With this script, I was able to determine the actual freecad document mime type:
Code: Select all
File type: application/x-extension-fcstd
Default Application: FreeCAD
Other Applications:
FreeCAD (Command: /usr/bin/freecad )
FreeCAD (Command: /usr/bin/freecad )
Description: FreeCAD document files
So I thought, the mime type is already known by the system, I just need to copy my icon to the right place and with the right name.
I named it
application-x-extension-fcstd.svg and copied it in two places:
/usr/share/icons/gnome/scalable/mimetypes
/usr/share/icons/Humanity/mimes/48 (which seems to host most of the icons on Ubuntu Lucid)
Logged off for the umpteenth time, logged in... still no custom icon. I though, maybe my svg (made from merging with Inkscape an existing text document svg icon with freecad.svg from /freecad/src/Gui/icons) was not valid. So I replaced it with some other existing svg icon. No luck, it still won't work.
Then I thought, the script finds the mimetype, but the /etc/mime.types does not list it. So I add it to the file, annnnd... still nothing.
That's it, before I start banging my head on the wall for such a stupid thing, I think I'm gonna give up and forget all about it.
