From b62a02a47bef30c4d5d052b5a0dcc582ce9d784e Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 16 Feb 2014 10:26:34 -0600 Subject: [PATCH] Instead of printing PostScript attachments, by default, from mhshow, try to find a suitable viewer. --- docs/pending-release-notes | 2 ++ etc/mhn.defaults.sh | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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 -- 2.56.0