diff --git a/bin/nnnedit b/bin/nnnedit index 60a5f23..b732708 100755 --- a/bin/nnnedit +++ b/bin/nnnedit @@ -1,8 +1,10 @@ #!/bin/sh -MIMETYPE=$(xdg-mime query filetype "$1") -case "$MIMETYPE" in - image/*) +case "$1" in + *.jpg) + *.jpeg) + *.png) + *.gif) gimp "$1" ;; *)