Hey Richard I am glad you got it working. However, adding application/octect-stream to the pdfdocument.evince-backend is only a workaround for solving the real problem. Normally, you should get a pdf mimetype. If you have some updates on how to run evince without adding the application/octect-stream on a Mac, we would be grateful to know about it.
Greetings José On Tue, Mar 19, 2013 at 3:32 PM, Richard Shann <[email protected]>wrote: > Jose, Hib > > Thank you so much for you helpful comments which I forwarded to > [email protected] where Jeremiah now reports success: > > >I got it working. I added mach-o support to evince. I also set the > >mime type in pdfdocument.evince-backend to include > >application/octet-stream. Now its working fine. > > This has been a long hard slog (not just the evince bit) but we appear > now to have Denemo with its built-in evince widget built on the three > major platforms. I am just uploading a demo which shows the evince > widget in action inside Denemo. It should be at > https://vimeo.com/search?q=denemo shortly. > > Regards, > > Richard > > On Tue, 2013-03-19 at 09:01 -0400, [email protected] wrote: > > Hi Richard, > > > > > > How are you compiling evince? One way of encountering the errors you > > are facing is that either shared-mime-info is not installed on your > > system or glib is not finding it, so please double check that you have > > shared-mime info installed [1] (If you are using jhbuild, just do > > jhbuild install shared-mime-info) > > > > > > > > Greetings > > > > José > > > > [1] http://freedesktop.org/wiki/Software/shared-mime-info > > > > > > On Tue, Mar 19, 2013 at 4: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" > > > > So he appended ";text/plain" and ";application/octet-stream" > > for good > > measure to the pdfdocument.evince-backend file: > > > > > MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;application/x-ext-pdf;text/plain;application/octet-stream > > > > but reports it still didn't load. > > > > He says he is still hacking so there is no need to respond to > > this > > unless you have a specific idea (e.g. about that "text/plain" > > thing) > > that will help. > > > > Thanks again, > > > > Richard > > > > > > Hi Richard, > > > > > > > > On Sun, Mar 17, 2013 at 4:10 PM, Richard Shann > > <[email protected]> > > > > wrote: > > > > > >> Running GNU/Denemo on Mac OSX we use > > ev_document_factory_get_document() > > > >> to load a pdf file. On this platform (only) the call > > fails with the > > > >> message > > > >> > > > >> File type application/octet-stream type > > (application/octet-stream) is > > > >> not supported > > > >> > > > >> Can anyone suggest what might be wrong? The call is > > working fine on > > > >> GNU/Linux and on Windows. > > > > > > > > > > Previously, I've run into the same problem when porting > > Evince to > > > > Windows. It has something to do with Evince' mime-type > > > > detection/handling. I think there were several issues with > > it. > > > > > > > > First step to fixing this is to see what this evince > > function returns: > > > > > > > > mime_type = ev_file_get_mime_type (uri, TRUE, error); > > > > > > > > If that returns 'application/octet-stream', I guess you > > need to > > > > register the pdf mime type somewhere in your OS specific > > mime type > > > > store. > > > > > > > > If the mime type is something like 'application/pdf', then > > make sure > > > > the returned mimetype is specified in the file > > > > /usr/lib/evince/4/backends/pdfdocument.evince-backend. > > > > > > > > Regards, > > > > > > > > Hib Eris > > > > > > > > > > _______________________________________________ > > evince-list mailing list > > [email protected] > > https://mail.gnome.org/mailman/listinfo/evince-list > > > > > > > > >
_______________________________________________ evince-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/evince-list
