commit 86abd83dfdf58f0dc4d94ece599c45df2f9c9f15
parent f4baa394be2a719432b609768bff7d737e28b5ca
Author: Mischievous Meerkat <engineerarun@gmail.com>
Date: Mon, 18 Jan 2021 16:15:30 +0530
Merge pull request #839 from bagnacauda/wall_update
Updated wall plugin to the standard utility file
Diffstat:
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