On my system I neither use the .deb packages nor an AppImage but complie FreeCAD locally.
When I tried to activate thumbnails the first time I could see that FreeCAD files got the same icon as for text documents (before it was the icon of compressed files) and that in the /tmp folder there were many files of the form tumbler-<XXXXXXX>.png that all were empty. So, this possibly was the reason why the thumbnails for FCStd files were wrong.
Additionally I now installed the packages tumbler-plugins-extra and thunar-gtkhash. And I entered this into the terminal
Code: Select all
thunar -q
Here is a list of all steps I have performed:
- Install tumbler-plugins-extra and thunar-gtkhash
- sudo cp src/Tools/freecad-thumbnailer /usr/bin/
- sudo chmod a+x /usr/bin/freecad-thumbnailer
- sudo cp src/Gui/Icons/freecad-icon-48.png /usr/share/icons/hicolor/48x48/apps/freecad.png
- sudo cp src/XDGData/FreeCAD.thumbnailer /usr/share/thumbnailers/
- cp src/XDGData/org.freecadweb.FreeCAD.xml ~/.local/share/mime/packages
- update-mime-database ~/.local/share/mime/
- sudo update-mime
- rm -rf ~/.cache/thumbnails/*
- thunar -q
If a thumbnailer shouldn't be used and you want to show a generic icon instead then run:
xdg-icon-resource install --context mimetypes --size 64 src/Gui/Icons/freecad-doc.png application-x-extension-fcstd
This will create the file $HOME/.local/share/icons/hicolor/64x64/mimetypes/