I want to be able to choose one image file as my wallpaper and then overwrite that file to change the image that's displayed on the desktop background.

Currently, the displayed wallpaper doesn't reflect changes to the selected file until I choose it again in System Settings. How can I force it to update programmatically from, say, a shell script?

When I choose an image to be the wallpaper it looks the image is copied to a new location and then that copy is set as the wallpaper; immediately after choosing an image its original file name is displayed:


but when I close and re-open the Appearance settings screen the name has been replaced with gibberish:


I wonder whether disabling this behavior would help.


The code for Wallch might give you clues:



I'd suggest looking at /usr/share/backgrounds/contest/background-1.xml or http://git.gnome.org/browse/gnome-themes-standard/tree/themes/Adwaita/backgrounds/adwaita-timed.xml.in

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.