Add support for showing 'MATE' wallpaper

This commit is contained in:
Dylan 2016-02-09 21:12:09 +11:00
parent f38da87a79
commit f1450d1fc8
1 changed files with 6 additions and 1 deletions

7
fetch
View File

@ -1460,7 +1460,12 @@ getwallpaper () {
img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")" img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"
elif type -p gsettings >/dev/null 2>&1; then elif type -p gsettings >/dev/null 2>&1; then
img="$(gsettings get org.gnome.desktop.background picture-uri 2>/dev/null)" case "$XDG_CURRENT_DESKTOP" in
"MATE"*) img="$(gsettings get org.mate.background picture-filename 2>/dev/null)" ;;
*) img="$(gsettings get org.gnome.desktop.background picture-uri 2>/dev/null)" ;;
esac
# Strip quotes etc from the path.
img=${img/'file://'} img=${img/'file://'}
img=${img//\'} img=${img//\'}
fi fi