Opening pdf attachment from mail client not working

Erik Christiansen erik at dd.nec.com.au
Mon Nov 27 01:14:24 UTC 2006


On Fri, Nov 24, 2006 at 07:21:42PM +0100, Luqman wrote:
> 
> The problem is with mailcap or mail system in general...??

Sounds like it. This is what I have in my /etc/mailcap:

application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != "";
description=Portable Document Format; nametemplate=%s.pdf

application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != "";
description=Portable Document Format; nametemplate=%s.pdf

That should be just two lines, but I've wrapped them, for your
confusion. ;-)    They work well for me. I tried evince, but found xpdf
easier to use.

Incidentally, if you should ever encounter any pdf reader which allows
typing in a path to the "Save As" dialogue (rather than imprisoning the
user in a clicky - click nightmare crawling up and down directory
hirerachies), then please take pity, and save me from this sadistically
laborious gui-ism.

Erik




More information about the ubuntu-users mailing list