From: Simone Date: Mon, 18 Jan 2021 10:34:19 +0000 (+0100) Subject: Updated wall plugin to the standard utility file X-Git-Tag: v3.6~27^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f23452396ea2c100633ff346d42da74b471a4448;p=nnn.git Updated wall plugin to the standard utility file --- diff --git a/plugins/wall b/plugins/wall index a35412fa..15f157f0 100755 --- a/plugins/wall +++ b/plugins/wall @@ -12,7 +12,7 @@ cmd_exists () { } if [ -n "$1" ]; then - if [ "$(mimetype --output-format %m "$1" | awk -F '/' '{print $1}')" = "image" ]; then + if [ "$(file --mime-type "$1" | awk '{print $2}' | awk -F '/' '{print $1}')" = "image" ]; then if [ "$(cmd_exists nitrogen)" -eq "0" ]; then nitrogen --set-zoom-fill --save "$1" elif [ "$(cmd_exists wal)" -eq "0" ]; then