xmd-load-wallpaper is more resilient

This commit is contained in:
Sasha Koshka 2023-11-14 16:37:44 -05:00
parent 1a60d903b2
commit 6d88bd13a3

View File

@ -1,4 +1,9 @@
#!/bin/sh
. $XMD_USERDIR/wallpaper
xwallpaper "--${mode}" "$file"
if type "$XMD_USERDIR/wallpaper" > /dev/null; then
. "$XMD_USERDIR/wallpaper"
if type xwallpaper > /dev/null; then
xwallpaper "--${mode}" "$file"
fi
fi