mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
fix fontpreview (#903)
This commit is contained in:
parent
ac29a7c166
commit
bebad983ca
|
@ -180,7 +180,7 @@ preview_file () {
|
||||||
generate_preview "$cols" "$lines" "$1" "pdf"
|
generate_preview "$cols" "$lines" "$1" "pdf"
|
||||||
elif [ "$ext" = "epub" ] && exists gnome-epub-thumbnailer; then
|
elif [ "$ext" = "epub" ] && exists gnome-epub-thumbnailer; then
|
||||||
generate_preview "$cols" "$lines" "$1" "epub"
|
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"
|
generate_preview "$cols" "$lines" "$1" "font"
|
||||||
elif [ "${mimetype#*office}" != "$mimetype" ] || [ "${mimetype#*document}" != "$mimetype" ] && exists libreoffice; then
|
elif [ "${mimetype#*office}" != "$mimetype" ] || [ "${mimetype#*document}" != "$mimetype" ] && exists libreoffice; then
|
||||||
generate_preview "$cols" "$lines" "$1" "office"
|
generate_preview "$cols" "$lines" "$1" "office"
|
||||||
|
|
Loading…
Reference in a new issue