After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551993 - Nautilus no longer generates thumbs for AI files or XCF files
Nautilus no longer generates thumbs for AI files or XCF files
Status: RESOLVED DUPLICATE of bug 311990
Product: evince
Classification: Core
Component: backends
unspecified
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-12 16:43 UTC by Chris Mohler
Modified: 2017-07-19 17:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Add illustrator mimetype (771 bytes, patch)
2012-06-10 21:58 UTC, Chris Mohler
reviewed Details | Review
Add illustrator mimetype to thumbnailer (1.29 KB, patch)
2013-06-17 22:30 UTC, Chris Mohler
needs-work Details | Review

Description Chris Mohler 2008-09-12 16:43:11 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"
Comment 1 Emmanuel Fleury 2009-11-15 10:43:17 UTC
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 ?
Comment 2 Chris Mohler 2009-11-15 18:07:13 UTC
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.
Comment 3 Chris Mohler 2010-06-28 19:13:16 UTC
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.
Comment 4 Chris Mohler 2012-04-06 20:16:33 UTC
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.
Comment 5 Christian Persch 2012-06-10 21:36:53 UTC
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?
Comment 6 Chris Mohler 2012-06-10 21:58:16 UTC
Created attachment 216075 [details] [review]
Add illustrator mimetype

Patch to add mimetype to "evince.thumbnailer" (not evince.desktop)
Comment 7 Carlos Garcia Campos 2012-08-14 15:28:05 UTC
Review of attachment 216075 [details] [review]:

Thanks for the patch, I guess it should also be added to pdfdocument.evince-backend.in, no?
Comment 8 Chris Mohler 2012-08-14 15:34:29 UTC
Ah.  I think you may be correct.  I'll create a new patch when I get some free time.
Comment 9 Chris Mohler 2013-06-17 22:30:29 UTC
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.
Comment 10 Chris Mohler 2013-06-18 01:50:19 UTC
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).
Comment 11 Chris Mohler 2014-03-19 06:23:15 UTC
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.
Comment 12 Bastien Nocera 2017-07-19 16:36:05 UTC
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?
Comment 13 Bastien Nocera 2017-07-19 16:41:29 UTC
Review of attachment 247076 [details] [review]:

Would at least need to be git-formatted.
Comment 14 Bastien Nocera 2017-07-19 17:08:38 UTC
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 ***