diff --git a/sx-open b/sx-open index dc11b7a..63ade16 100755 --- a/sx-open +++ b/sx-open @@ -116,7 +116,7 @@ handle_target() { [[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones. - IFS=';' read target_mimetype charset <<< $( file -ib "$target" ) + IFS=';' read target_mimetype charset <<< $( file -ibL "$target" ) target_left=$target_mimetype set -- "${mime_handlers[@]}"