On Thu, 2005-05-05 at 10:38 -0400, Brian White wrote: > > In /etc/mailcap, gpdf is ahead of xpdf, making gpdf the default for pdf > > documents. > > > > I prefer to use xpdf, so I follow the instructions in /etc/mailcap.order by > > adding the line > > xpdf:application/pdf > > in it, and then running /usr/sbin/update-mime. > > > > But as far as I can tell, it does absolutely nothing. gpdf still appears > > ahead of xpdf in /etc/mailcap. It looks as though /etc/mailcap is exactly > > the same. > > > > What's going wrong? > > I believe it's because there is no mime information for "xpdf". > Instead, it's in "xpdf-reader". You can verify this by looking under > /usr/lib/mime/package/ for "xpdf*". > > Thus, use: "xpdf-reader:application/xpdf" >
Yes, that works. Thanks for the tip. This behaviour is not obvious. It's described in the man page, but you have to read it carefully to notice that it's *packages* which need to be listed, not binary files. Would it be possible to add an extra sentence to /etc/mailcap.order underlining this? Something like: # Mailcap.order: This file allows a system-wide override of MIME program # preferences. See the mailcap.order(5) man page for more information. # Note that the Debian package (as found in /usr/lib/mime/packages/) must # be listed here, not the binary executable which it provides. Thanks, Drew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]