diff --git a/common/.config/lf/preview b/common/.config/lf/preview index 3c3f64d7..36317eee 100755 --- a/common/.config/lf/preview +++ b/common/.config/lf/preview @@ -37,9 +37,9 @@ cached_text() { cached_image() { if [ -f "$CACHE" ]; then - $CHAFA "$CACHE" && exit 1 + $CHAFA "$CACHE" else - run "$@" | tee -p "$CACHE" | $CHAFA && exit 1 + run "$@" | tee -p "$CACHE" | $CHAFA fi } @@ -78,7 +78,7 @@ mimetest() { ;; */epub+zip) cached_image gnome-epub-thumbnailer -s 1024 "$f" "$CACHE" ;; image/svg+xml) cached_image inkscape --convert-dpi-method=none -o "${CACHE}.png" --export-overwrite -D --export-png-color-mode=RGBA_16 "$f" ;; - image/*) $CHAFA "$f" && exit 1 ;; + image/*) $CHAFA "$f" ;; */pdf) cached_image pdftoppm -jpeg -f 1 -singlefile "$f" ;; video/*) cached_image ffmpegthumbnailer -s 0 -i "$f" -o "/dev/stdout" ;; */vnd.oasis.opendocument.text) cached_text odt2txt "$f" ;;