I wrote:
>
> text/html; /usr/bin/dillo %s ...

Oops, the %s should be quoted.
(run-mailcap defends against shell chars but not against spaces.)

# Dillo 3.0.3 requires HTML or XHTML in a filename "foo.html", hence
# nametemplate here for use when "see" reads stdin or similar.
# Other filenames such as "foo.xhtml" are taken to be plain text and
# displayed raw.
#
# ENHANCE-ME: Is there an option to dillo to force it to take an
# arbitrary filename as html or as the image types below?
#
text/html;             /usr/bin/dillo '%s'; description=HTML Text;  test=test 
-n "$DISPLAY"; nametemplate=%s.html
application/xhtml+xml; /usr/bin/dillo '%s'; description=XHTML Text; test=test 
-n "$DISPLAY"; nametemplate=%s.html

# Dillo 3.0.3 uses the .gif etc in the filename to determine the image
# type.  So for instance a gif file called foo.png is not displayed.
# Hence nametemplate here for use when "see" reads stdin or similar.
#
# "priority=2" for images here the same as other web browsers and
# below dedicated image viewer programs at default priority=5.
# Dillo 3.0.3 can only display gif, png and jpeg (see its DIC_Gif etc
# enum in src/dicache.c).
#
image/png;  /usr/bin/dillo '%s'; description=PNG Image;  test=test -n 
"$DISPLAY"; nametemplate=%s.png;  priority=2
image/jpeg; /usr/bin/dillo '%s'; description=JPEG Image; test=test -n 
"$DISPLAY"; nametemplate=%s.jpeg; priority=2
image/gif;  /usr/bin/dillo '%s'; description=GIF Image;  test=test -n 
"$DISPLAY"; nametemplate=%s.gif;  priority=2

Reply via email to