Add support for showing 'MATE' wallpaper
This commit is contained in:
parent
f38da87a79
commit
f1450d1fc8
1 changed files with 6 additions and 1 deletions
7
fetch
7
fetch
|
@ -1460,7 +1460,12 @@ getwallpaper () {
|
|||
img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"
|
||||
|
||||
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//\'}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue