Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

The code for Wallch might give you clues:

share|improve this answer

I'd suggest looking at /usr/share/backgrounds/contest/background-1.xml or

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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