commit f23452396ea2c100633ff346d42da74b471a4448 parent f4baa394be2a719432b609768bff7d737e28b5ca Author: Simone <simonedotto@protonmail.com> Date: Mon, 18 Jan 2021 11:34:19 +0100 Updated wall plugin to the standard utility file Diffstat:
| M | plugins/wall | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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