From c0a38419e027e400b370db10086bcb8a3c981ce7 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Sat, 29 Jan 2000 01:34:20 +0000 Subject: [PATCH] Added check for lynx to write mhshow-show-text/html line in mhn.defaults.sh. --- ChangeLog | 5 ++++- etc/mhn.defaults.sh | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ee9581f..c493981 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,12 @@ -Fri Jan 28 14:05:02 2000 Dan Harkless +Fri Jan 28 17:39:24 2000 Dan Harkless * All %-escapes in mhn.defaults that actually expand to something should be surrounded by single quotes. Added quotes to the ones in mhn.defaults.sh that were missing them. + * Added check for lynx to write mhshow-show-text/html line in + mhn.defaults.sh. + Thu Jan 27 12:22:25 2000 Dan Harkless * makedir() had multiple bugs dating back to MH. It passed an diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index 7de7ca6..e3fa2fd 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -126,6 +126,15 @@ if [ ! -z "$PGM" ]; then echo "mhshow-show-application/x-ivs: %p$PGM -o '%F'" >> $TMP fi +# I'd like to check if netscape is available and use it preferentially to lynx, +# but only once I've added a new %-escape that makes more permanent temp files, +# so netscape -remote can be used (without -remote you get a complaint dialog +# 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 -force_html '%F'" >> $TMP +fi + PGM="`$SEARCHPROG $SEARCHPATH richtext`" if [ ! -z "$PGM" ]; then echo "mhshow-show-text/richtext: %p$PGM -p '%F'" >> $TMP -- 1.7.10.4