retitle 723718 suggest /etc/mailcap entry for xmore and xwud thanks xwud could also helpfully have a mailcap entry too. New proposed debian/mime file below. xwud isn't the most sophisticated image viewer, but xwd is its native format and on a minimal x11 install it could be all that's available for xwd.
# priority=6 here is below "less" at priority=8. # Believe "less" in an xterm is more featureful than xmore. # # Want to be above Emacs priority=5 entries made by update-mime from # /usr/share/applications/emacs24.desktop. Believe xmore is easier # for standalone use. # text/plain; xmore '%s'; test=test -n "$DISPLAY"; description=Plain Text; priority=6 # priority=0 here to act as a fallback if some text/foo type has nothing # specific. text/*; xmore '%s'; test=test -n "$DISPLAY"; description=Plain Text; priority=0 # xwud with no arguments reads from standard input which can let # run-mailcap or simlar feed it from a pipe rather than a temporary # file. # Lowish priority since xwud doesn't have many features. It's about # the same as imagemagick "display" so prioirty=2 the same as that. image/x-xwindowdump; xwud; test=test -n "$DISPLAY"; priority=2

