From 9e24bcb2eb847448c0d2c930efa56d229e660f67 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 23 Oct 2021 23:20:01 +0200 Subject: Changed html file opener --- open-file | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'open-file') diff --git a/open-file b/open-file index d30f3c0..0e8e210 100755 --- a/open-file +++ b/open-file @@ -5,6 +5,8 @@ # Use option -s devour to swallow or -s " " to open normally from terminal # Use -t to specify mimetype # Requires: dmenu_path or similar (fallback) +# environment variables for default programs need to be set +# (I might remove this requirement at some point) menu=${MENU:-dmenu} @@ -50,7 +52,7 @@ case "$mimetype" in $launcher $SPREADSHEET "$1" ;; text/html | text/enriched) - $launcher $BROWSER --new-window "$1" + $launcher $HTMLVIEWER "$1" ;; text/*) $launcher $XEDITOR "$1" -- cgit v1.3