GNOME Bugzilla – Bug 551993
Nautilus no longer generates thumbs for AI files or XCF files
Last modified: 2017-07-19 17:08:38 UTC
Please describe the problem: Previously (in Ubuntu Gutsy - 7.04) nautilus generated thumbnails for AI (Adobe Illustrator) files. Nautilus correctly identifies AI files as PDF format, and other PDF files get thumbnail icons. The "file" command returns the 'application/pdf' mimetype which is also expected. An interesting side note - if I rename the file.ai to file.pdf, it is thumbnailed properly and it will retain the thumbnail icon when renamed back to file.ai I originally filed the bug with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/227589 Steps to reproduce: 1. Open a folder (in Nautilus) containing AI files Actual results: Generic text icon Expected results: Document thumbnail Does this happen every time? Yes Other information: These two commands add thumbnails for AI files: gconftool-2 --set /desktop/gnome/thumbnailers/application@illustrator/command -t string "evince-thumbnailer -s %s %u %o" /etc/gconf/schemas$ gconftool-2 --set /desktop/gnome/thumbnailers/application@illustrator/enable -t boolean "True"
I tried to open an AI file with Evince and it worked fine. It may be linked to the MIME-type but probably not Evince. Is this issue still here on a more recent distribution ?
Yes - recent AI files are just PDF. And yes this still occurs with recent Gnome (2.26.1) - no preview, just generic icon. The workaround described in the original report still works.
This issue is still present in 2.30.0 (no thumbnails). The two commands still work (thumbnails are created): gconftool-2 --set /desktop/gnome/thumbnailers/application@illustrator/command \ -t string "evince-thumbnailer -s %s %u %o" gconftool-2 --set \ /desktop/gnome/thumbnailers/application@illustrator/enable -t boolean "True" (cleaned up the formatting of these a bit for copy-paste purposes) Perhaps this needs to be filed against another component, but I'm not sure which one.
The workaround no longer works in Gnome 3 (3.2.0) and the issue is still present. Instead, one must edit /usr/share/thumbnailers/evince.thumbnailer and append "application/illustrator;" to the "MimeType=" line. On my system, evince.thumbnailer is provided by the evince-common package.
So this is just a request to add another MIME type to the supported ones in the .desktop file? If so, care to submit a git-format-patch formatted patch?
Created attachment 216075 [details] [review] Add illustrator mimetype Patch to add mimetype to "evince.thumbnailer" (not evince.desktop)
Review of attachment 216075 [details] [review]: Thanks for the patch, I guess it should also be added to pdfdocument.evince-backend.in, no?
Ah. I think you may be correct. I'll create a new patch when I get some free time.
Created attachment 247076 [details] [review] Add illustrator mimetype to thumbnailer Honestly I still haven't finished building all the deps to test this out yet (fresh system). OTOH, it's pretty simple. Should be OK to 'git apply' against master.
OK - so I finally got all the deps in place and compiled evince with the patch applied. Now I'm still not quite sure to test it, since it's outside my system path - but the generated evince.thumbnailer file looks fine to me (matches what I have to add manually to get thumbnails working).
So, hey - just a gentle 9-month bump, on a slow bug ;) I haven't checked since I uploaded the patch, but it's trivial and the end result still works.
Do you have a test file available somewhere? Is evince supposed to open Illustrator in its UI, or do we only want the PDF thumbnailer to handle those files, and let another program handle the full files, inkscape maybe?
Review of attachment 247076 [details] [review]: Would at least need to be git-formatted.
Closing as a duplicate of much older bug 311990 This answers my questions from comment 12 though. *** This bug has been marked as a duplicate of bug 311990 ***