Guess what: I've got FreeCAD icons and thumbnails back in Ubuntu 11.10 Oneiric!
But I tried so many things that I have no idea what did it. I don't know on what Debian version you're on Yorik, and what GNOME packages you have. Ubuntu 11.10 is based on the latest GNOME 3.2 and many things have changed. For example, gconf-editor does not work anymore, as configuration has switched from gconf (now deprecated) to GSettings. dconf-editor is a GUI frontend for GSetting, but it implements very few parameters.
Anyway, I was pissed that all my FreeCAD files had a generic text icon file. I installed the assogiate package, which is a File types Editor GUI app. With it I was able to set a default icon to FreeCAD files since there were none set.
Thumbnail management has changed too. When perusing my filesystem, I found that there was now a /usr/share/thumbnailers folder. It contained a few *.thumbnailer files. I copied the one for evince and decided to create one for FreeCAD with the following:
Code: Select all
Exec=freecad-thumbnailer -s %s %u %o
At first I named it freecad.thumbnailer. I rebooted, none of my files were showing their thumbnails. I copied it to freecad-thumbnailer.thumbnailer, since freecad-thumbnailer is the name of the script in /usr/bin. Rebooted, no effect. So I gave up.
That was last week. Tonight, I created a new file for the first time in a couple of weeks, and surprise! The thumbnail is there.
It looks like that all my existing files (created prior to my current Oneiric installation) don't show thumbnails. The only way I can get one is to open a file and save it again. I wonder if there's a way to "rebuild" the thumbnail cache or something...
I guess next, what I need to do is delete the .thumbnailer files I created to make sure that they're actually doing something.