varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.12k stars 137 forks source link

References to Cinnamon and Mate schemas on Gnome Shell #681

Open danisztls opened 4 months ago

danisztls commented 4 months ago

Version of Variety

0.8.12

Describe the bug

Similar to #329. While I'm on Gnome Shell (v45.3) I see on the systemd journal the following:

Feb 03 05:30:13 epsilon variety.desktop[1305647]: No such schema “org.mate.desktop.background”
Feb 03 05:30:13 epsilon variety.desktop[1305657]: No such schema “org.cinnamon.desktop.background”

Those messages repeat every 30 seconds.

To Reproduce

pacman -S variety

Attach Variety's log file

variety.log

OS name and version

Arch Linux

jlu5 commented 4 months ago

Hmm I thought we fixed this many years ago (https://github.com/varietywalls/variety/commit/0dc445c88d5cbf08760710c55ffccffd6a867b3e). Is your set_wallpaper script (~/.config/variety/scripts/set_wallpaper) up to date? If you haven't made any modifications to it, deleting it and restarting Variety should replace it with the latest version.

danisztls commented 4 months ago

@jlu5 I've deleted the content of the scripts directory but the issue persists. How can I check if the new script is up to date? There isn't a version in the file.

This block is the culprit

# MATE after 1.6
gsettings set org.mate.background picture-filename "$WP" 2> /dev/null
if [ "$(gsettings get org.mate.desktop.background picture-options 2>/dev/null)" == "'none'" ]; then
    gsettings set org.mate.desktop.background picture-options 'zoom'
fi
if [[ "$4" =~ ^(wallpaper|centered|scaled|stretched|zoom|spanned)$ ]]; then
  gsettings set org.mate.desktop.background picture-options "$4"
fi

# Cinnamon after 2.0
gsettings set org.cinnamon.desktop.background picture-uri "file://$WP" 2> /dev/null
if [ "$(gsettings get org.cinnamon.desktop.background picture-options 2>/dev/null)" == "'none'" ]; then
    gsettings set org.cinnamon.desktop.background picture-options 'zoom'
fi
if [[ "$4" =~ ^(wallpaper|centered|scaled|stretched|zoom|spanned)$ ]]; then
  gsettings set org.cinnamon.desktop.background picture-options "$4"
fi

New log: variety.log