plugins/nuke | 2 +- plugins/preview-tabbed | 2 +- plugins/preview-tui | 4 ++-- plugins/preview-tui-ext | 4 ++-- diff --git a/plugins/nuke b/plugins/nuke index 82869707e37302126d8f974177f3b976dade4632..8a2665f7702943ea7a24333cff2af943fee7e343 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -510,7 +510,7 @@ exit 0;; esac } -MIMETYPE="$( file --dereference --brief --mime-type -- "${FPATH}" )" +MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )" handle_extension handle_multimedia "${MIMETYPE}" handle_mime "${MIMETYPE}" diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed index 5caccb50fe726eeb6ffb44b7414f73db98af89c8..43cb40bb08cf7bff42b0b8aa6a283365d22f80ef 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -138,7 +138,7 @@ fi kill_viewer - MIME="$(file -b --mime-type "$FILE")" + MIME="$(file -bL --mime-type "$FILE")" case "$MIME" in video/*) diff --git a/plugins/preview-tui b/plugins/preview-tui index f90cf6f877ee02aaadb809c29cd2692913070786..51eb0df2550c666f0235eb4440434b90771c5f5c 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -137,8 +137,8 @@ fi # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')" diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index b946762fae6bee460a1df6f5782ee5e03cfcf5e6..f49599d7c7c22ef0e31d03953bdcb36fa4dfe832 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -148,8 +148,8 @@ fi # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')"