esac
}
-MIMETYPE="$( file --dereference --brief --mime-type -- "${FPATH}" )"
+MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )"
handle_extension
handle_multimedia "${MIMETYPE}"
handle_mime "${MIMETYPE}"
kill_viewer
- MIME="$(file -b --mime-type "$FILE")"
+ MIME="$(file -bL --mime-type "$FILE")"
case "$MIME" in
video/*)
# 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:]')"
# 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:]')"