diff --git a/plugins/nuke b/plugins/nuke index 82869707..8a2665f7 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -510,7 +510,7 @@ handle_blocked() { 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 5caccb50..43cb40bb 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -138,7 +138,7 @@ previewer_loop () { 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 f90cf6f8..51eb0df2 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -137,8 +137,8 @@ preview_file () { # 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 b946762f..f49599d7 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -148,8 +148,8 @@ preview_file () { # 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:]')"