about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-05-28 14:50:09 +0200
committertoonn <toonn@toonn.io>2019-06-06 20:56:46 +0200
commitc85c17cc52c8ab720674f5c5f56ee1a2cdac22b1 (patch)
tree2a810d24f1aff1cfc2e7233b9a8166e22014f929
parente2df4002cedf71075de9c98c1624113afec9c5f7 (diff)
downloadranger-c85c17cc52c8ab720674f5c5f56ee1a2cdac22b1.tar.gz
Some SVG have MIME type image/svg
Scope now treats `image/svg` the same as `image/svg+xml`
`image/svg` is not an official MIME type afaics *but* `file(1)` does
sometimes determine it to be an svg's MIME type.
-rwxr-xr-xranger/data/scope.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index e9c10916..9202146d 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -101,7 +101,7 @@ handle_image() {
     local mimetype="${1}"
     case "${mimetype}" in
         # SVG
-        # image/svg+xml)
+        # image/svg+xml|image/svg)
         #     convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
         #     exit 1;;