plugins/preview-tui-ext | 2 +- diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index 723fe7afd03c1353564e5bd9230f5aa5bbf608ba..95ec74db49cfef2bea753c3f0945996a259feec9 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -180,7 +180,7 @@ elif [ "$ext" = "pdf" ] && exists pdftoppm; then 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"