From 0b52be6c87fd4cf58e28c28ba276ecd21418e4ef Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Thu, 7 Mar 2024 16:26:49 +0100 Subject: [PATCH] fix pdf preview --- .config/lf/preview/preview | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/preview/preview b/.config/lf/preview/preview index d4ca484ee..88f62c86f 100755 --- a/.config/lf/preview/preview +++ b/.config/lf/preview/preview @@ -60,7 +60,7 @@ run() { mimetest() { case "$1" in */pdf) - [ ! -f "${CACHE}.jpg" ] && run pdftoppm -jpeg -f 1 -singlefile "$f" "$CACHE" + [ ! -f "${CACHE}.jpg" ] && cat "$f" | run pdftoppm -jpeg -f 1 -singlefile - "$CACHE" image "${CACHE}.jpg" "$w" "$h" "$x" "$y" ;; */x-bzip-compressed-tar | */x-compressed-tar | */x-xz-compressed-tar) run als -- "$f" ;;