On Wed, Aug 29, 2007 at 03:43:25PM +0200, Florian Kulzer wrote:
> On Wed, Aug 29, 2007 at 12:09:09 +0000, Douglas A. Tutty wrote:
> > On Wed, Aug 29, 2007 at 10:03:07AM +0200, Florian Kulzer wrote:
> > > On Tue, Aug 28, 2007 at 14:23:27 +0000, Douglas A. Tutty wrote:
> >  
> > > > Evince itself opens OK, but when I open the file dialog with its default
> > > > filter of "All Documents", it doesn't see any.  If I remove the filter
> > > > to "All Files", it sees the pdfs but when I select one to open, it pops
> > > > up an error:
> > > > 
> > > > Unable to open document
> > > > Unhandled MIME type 'application/octet-stream'
> 
 
> I just ran strace on evince and opened a PDF file. The only "magic"
> files which evince tried to access were ~/.local/share/mime/magic and
> /usr/local/share/mime/magic (neither of which is present on my system).
> Maybe you can generate one of these two files to make evince recognize
> the PDFs. I have no idea about the required format, therefore I would
> simply try to use what I see in /usr/share/mime/magic:
> 
> $ grep -aA1 pdf /usr/share/mime/magic
> [60:application/pdf]
> >0=%PDF-
> 
> There are two non-printing bytes hidden in grep's output above, between
> the "=" and the "%" sign in the second line:
> 
> $ grep -aA1 pdf /usr/share/mime/magic | hd -C
> 00000000  5b 36 30 3a 61 70 70 6c  69 63 61 74 69 6f 6e 2f  |[60:application/|
> 00000010  70 64 66 5d 0a 3e 30 3d  00 05 25 50 44 46 2d 0a  |pdf].>0=..%PDF-.|
> 00000020

Thanks, Florian,

Its too much like work to get Gnome to do anything useful.  I've purged
the lot.  I'll stick with xpdf and kpdf.

Thanks,

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to