On Tue, Mar 19, 2013 at 9:48 AM, Richard Shann <[email protected]> wrote:
> Hi Hib,
>
> I have had some feedback from Jeremiah who is working with the Mac on
> the evince library build, he ran the call to
>
> ev_file_get_mime_type("file:///tmp/DenemoYBsSdY/denemoprintB.pdf", 1, NULL)
>
> in gdb and got back the string
>
> "text/plain"
"text/plain" is obviously not correct, it should be something with
'pdf' in it I guess.
Could you see what
ev_file_get_mime_type("file:///tmp/DenemoYBsSdY/denemoprintB.pdf", 0, NULL)
gives back as well?
Evince code for mime type detection is in libdocument/ev-file-helpers.c.
I'm afraid it is a bit unpredictable when glib fails to find the
correct mime-type/content-type.
_______________________________________________
evince-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/evince-list