Re: Does anyone have EXMH running on f9? (again)
Robert Elz <[email protected]>
| Newsgroups | gmane.mail.exmh.user |
|---|---|
| Message-ID | <[email protected]> |
Date: Mon, 08 Dec 2008 17:36:14 -0500
From: [email protected]
Message-ID: <[email protected]>
| > image/gif; /usr/X11R6/bin/xv %s ";
| > image/jpeg; /usr/X11R6/bin/xv "%s";
|
| Try this instead:
|
| image/gif: /usr/X11R6/bin/xv -
|
| exmh feeds the image to the program on stdin.
That would probably work, but so would the original if the extraneous
quotes were removed...
What I use (not on Linux, of any vintage, but I really doubt the OS
matters at all here, other than in what it distributes in its default
mailcap file) ...
image/gif; xv %s
image/jpeg; xv %s
(and a bunch of other image formats). You could also use ImageMagick's
display program, or the equivalent from any of the many other graphics
utilities - using a browser (firefox or any other) to display an
image sure seems like overkill though!
There's no need to include the path to xv (unless you think you might
have several) if you can run xv from the command line of a shell, it
will work from wish (ie: from exmh) as well. And you don't need quotes,
even if in general quoting args is a good idea, again, we know with exmh
what format the arg is going to be /tmp/exmh.n.m... - it contains nothing
that is ever going to need quoting, by avoiding quotes we also avoid having
to learn what is the correct way to quote something in a mailcap file as used
by exmh...
kre