From bd442956fa49e1fb302f17a94149ea1cd6110514 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 1 Feb 2014 10:09:13 -0600 Subject: [PATCH] Look for w3m if lynx isn't available for mhshow-show-text. --- etc/mhn.defaults.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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`" -- 2.56.0