summaryrefslogtreecommitdiff
path: root/browser
diff options
context:
space:
mode:
Diffstat (limited to 'browser')
-rwxr-xr-xbrowser13
1 files changed, 12 insertions, 1 deletions
diff --git a/browser b/browser
index ccdfa8a..6323c4e 100755
--- a/browser
+++ b/browser
@@ -8,15 +8,26 @@ if [[ $1 != "" ]]; then
fi
fi
+# scale on highres displays
if [[ $(dpi) -gt 120 ]]; then
SCALE=1.4
else
SCALE=1.0
fi
+# maybe use firefox distributed in binary
bin=$(which firefox)
if [[ $? -eq 1 ]]; then
bin=$(which firefox-bin)
fi
-TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin $@
+# for mutt copy the file before it disappears
+case "$1" in
+ *tmp/pks/mutt/*)
+ cp $1 $1.html
+ TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin -new-tab $1.html
+ ;;
+ *)
+ TZ=UTC GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin $@
+ ;;
+esac