]> git.marmaro.de Git - mmh/blobdiff - etc/mhn.defaults.sh
Added check for lynx to write mhshow-show-text/html line in mhn.defaults.sh.
[mmh] / etc / mhn.defaults.sh
index 7de7ca68d5c4abe1aa2a411e96c9ae39110379c8..e3fa2fd9724418239dafd664d073ea5ed9fa0207 100755 (executable)
@@ -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