diff --git a/src/sh/integration/lf/lf-run b/src/sh/integration/lf/lf-run index 381d70e1..cd5d3480 100755 --- a/src/sh/integration/lf/lf-run +++ b/src/sh/integration/lf/lf-run @@ -4,7 +4,9 @@ set -e -[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && exec lf "$@" +[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] \ + || [ -n "$LF_NO_IMAGE_PREVIEW" ] \ + && exec lf "$@" if command -v -- ueberzugpp > /dev/null 2>&1; then cleanup() {