From: David Levine Date: Sat, 1 Feb 2014 16:09:13 +0000 (-0600) Subject: Look for w3m if lynx isn't available for mhshow-show-text. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/bd442956fa49e1fb302f17a94149ea1cd6110514?ds=sidebyside;hp=00415e34bc31fad4108b7ea6e25e52319a34b275 Look for w3m if lynx isn't available for mhshow-show-text. --- diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index f5a3e693..2f91a965 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -207,7 +207,12 @@ EOF # that another netscape is already running and certain things can't be done). PGM="`$SEARCHPROG $SEARCHPATH lynx`" if [ ! -z "$PGM" ]; then - echo "mhshow-show-text/html: %p$PGM '%F'" >> $TMP + echo "mhshow-show-text/html: %p$PGM -force-html '%F'" >> $TMP +else + PGM="`$SEARCHPROG $SEARCHPATH w3m`" + if [ ! -z "$PGM" ]; then + echo "mhshow-show-text/html: %p$PGM -T text/html '%F'" >> $TMP + fi fi PGM="`$SEARCHPROG $SEARCHPATH richtext`"