From bebad983cade1f4b6e4ef5e993e6b3e4d4b53c9e Mon Sep 17 00:00:00 2001 From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Sun, 21 Mar 2021 03:29:06 +0100 Subject: [PATCH] fix fontpreview (#903) --- plugins/preview-tui-ext | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index 723fe7af..95ec74db 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -180,7 +180,7 @@ preview_file () { generate_preview "$cols" "$lines" "$1" "pdf" elif [ "$ext" = "epub" ] && exists gnome-epub-thumbnailer; then generate_preview "$cols" "$lines" "$1" "epub" - elif [ "${mimetype%%/*}" = "font" ] && exists fontpreview; then + elif [ "${mimetype#*opentype}" != "$mimetype" ] || [ "${mimetype#*font}" != "$mimetype" ] && exists fontpreview; then generate_preview "$cols" "$lines" "$1" "font" elif [ "${mimetype#*office}" != "$mimetype" ] || [ "${mimetype#*document}" != "$mimetype" ] && exists libreoffice; then generate_preview "$cols" "$lines" "$1" "office"