From: David Levine Date: Sun, 16 Feb 2014 16:26:34 +0000 (-0600) Subject: Instead of printing PostScript attachments, by default, from mhshow, X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b62a02a47bef30c4d5d052b5a0dcc582ce9d784e?ds=inline Instead of printing PostScript attachments, by default, from mhshow, try to find a suitable viewer. --- diff --git a/docs/pending-release-notes b/docs/pending-release-notes index 759109a4..419569bc 100644 --- a/docs/pending-release-notes +++ b/docs/pending-release-notes @@ -126,6 +126,8 @@ OBSOLETE FEATURES {MHTMPDIR environment variable, TMPDIR environment variable, MH Path}. They are no longer be stored in the location specified by the TMP environment variable. +- Instead of printing PostScript attachments, by default, from mhshow, + try to find a suitable viewer. ------------------- DEPRECATED FEATURES diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index cc673adb..810b35c8 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -122,13 +122,18 @@ if [ ! -z "$PGM" ]; then echo "mhshow-show-video/mpeg: %p$PGM '%f'" >> $TMP fi -PGM="`$SEARCHPROG $SEARCHPATH lpr`" +PGM="`$SEARCHPROG $SEARCHPATH okular`" if [ ! -z "$PGM" ]; then - echo "mhshow-show-application/PostScript: %plpr -Pps" >> $TMP + echo "mhshow-show-application/PostScript: %pokular '%F'" >> $TMP else - PGM="`$SEARCHPROG $SEARCHPATH lp`" + PGM="`$SEARCHPROG $SEARCHPATH evince`" if [ ! -z "$PGM" ]; then - echo "mhshow-show-application/PostScript: %plp -dps" >> $TMP + echo "mhshow-show-application/PostScript: %pevince '%F'" >> $TMP + else + PGM="`$SEARCHPROG $SEARCHPATH gv`" + if [ ! -z "$PGM" ]; then + echo "mhshow-show-application/PostScript: %pgv '%F'" >> $TMP + fi fi fi