repo: golang
action: commit
revision: 
path_from: 
revision_from: bd0cff73c0b9f34e568871aaf71873a1eef61864:
path_to: 
revision_to: 
git.thebackupbox.net
golang
git clone git://git.thebackupbox.net/golang
commit bd0cff73c0b9f34e568871aaf71873a1eef61864
Author: epoch 
Date:   Thu Mar 19 02:28:34 2020 -0500

    have a hack that allows images opened in-terminal (by not having "linux" as their $TERM... yeah.) to show in external viewer program, otherwise sixels

diff --git a/etc/mimetype.conf b/etc/mimetype.conf
index 4ed47537f3f523803b25b962f2755da755e01a4c..
index ..15a52364d8f77d6cdc11b76f4972db97d109ab1f 100644
--- a/etc/mimetype.conf
+++ b/etc/mimetype.conf
@@ -1,5 +1,4 @@
-text/gophermap		x-terminal-emulator -hold -e sh -c "gophermap2terminal < '%s'"
 text/gophermap:		x-terminal-emulator -title "$(uriunescape '%p' | cut -d/ -f8-)" -hold -e sh -c "gophermap2terminal < '%p'"
 text/plain:		x-terminal-emulator -e less -f <(fold -sw 80 < '%p')
-image/png:		img2sixel '%p'
-image/gif:		img2sixel '%p'
+image/png:		[ "$TERM" != "linux" ] && img2sixel '%p' || xli '%p'
+image/gif:		[ "$TERM" != "linux" ] && img2sixel '%p' || xli '%p'

-----END OF PAGE-----