GNOME Bugzilla – Bug 342800
MIME type by content, not file name extension
Last modified: 2006-05-24 15:58:10 UTC
When I download a PDF or PostScript file from the web, the browser often saves the file as <something>.cgi (or .pl or .php or whatever), based on the URL of the application, which generated the document. Such document then cannot be displayed by evince, because it thinks that it has "application/x-perl" (or similar) MIME type. I think evince should determine the MIME type of the local file based on the file contents, not extension (using for example the shared-mime-info package). All other viewers/file readers I know of (eog, gthumb, gimp, xmms, mplayer ...) ignore the file name/extension, and use the file contents instead. I believe evince should do the same.
This problem should be fixed in recent CVS. Please check. Although there are some reports that it doesn't work still. Anyhow, let's discuss this problem in original bug. *** This bug has been marked as a duplicate of 336448 ***
It seems this bug is still present in today's CVS version (I will add the same comment to the bug #336448).