]> Sergey Matveev's repositories - nnn.git/commitdiff
Updated wall plugin to the standard utility file
authorSimone <simonedotto@protonmail.com>
Mon, 18 Jan 2021 10:34:19 +0000 (11:34 +0100)
committerSimone <simonedotto@protonmail.com>
Mon, 18 Jan 2021 10:34:19 +0000 (11:34 +0100)
plugins/wall

index a35412fa63c904b551528ecf5bd4a66f287e6287..15f157f0703a77ff8f947836eb812bca6a8996ac 100755 (executable)
@@ -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