From e6e219be26200b7c9a5609846f6beecbcd9f37b2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 14 Jan 2023 10:29:22 +0800 Subject: [PATCH] feat: remove xdg-mime dependency for nnnedit --- bin/nnnedit | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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" ;; *)