the current shared-mime-info (0.17-0ubuntu7) contains 3 possible matches (all at the same priority, 50) for files starting with "%" TEX matlab PDF this causes PDF files to have their typed detected as octet-stream. The TeX/matlab matches should have their priority lowered so that the more specific "%PDF-" string will match with higher priority. TeX and matlab having the same magic detection string seems vaguely useless, though.....
Note: postscript starts like "%!PS-Adobe-2.0" and is similarly broken by this bug.
I can confirm this with shared-mime-info-0.17-1.fc5.1, on Fedora Core 5. Some PDFs are correctly identified, others as text. I increased the priority for PDF from 50 to 60, now all PDFs are correctly identified by nautilus.
(In reply to comment #2) > I can confirm this with shared-mime-info-0.17-1.fc5.1, > on Fedora Core 5. Some PDFs are correctly identified, > others as text. I increased the priority for PDF from 50 to 60, > now all PDFs are correctly identified by nautilus. Could you please tell me where to increase the priority, I have some serious troubles sending pdf which are not properly identified via email. Bernhard Kleine
Confirm on Debian unstable (shared-mime-info 0.17-1 package). Changing the glob priority of PDF from 50 to 60 fixes the problem. Any progress on getting this actually noticed by someone with commit privs?
Here's the downstream report on Fedora Core 5: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193582 Interestingly enough 0.17-1.fc5.1 was supposed to fix a postscript vs. matlab problem: * Wed Mar 22 2006 Matthias Clasen <mclasen@redhat.com> - 0.17-1.fc5.1 - Backport upstream change to fix postscript vs. matlab confusion
The issue is also solved by upgrading "shared-mime-info" to current "CVS", as I had pointed out in: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=190858#c6 The "RPM" package built accordingly on 05/25/06 behaves correctly.
(In reply to comment #6) > The issue is also solved by upgrading "shared-mime-info" to current "CVS", > as I had pointed out in: Since it looks like it's been fixed in freedesktop's CVS, by this change: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?r1=1.138&r2=1.139 it should be marked closed.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.