0

I am trying to change the wallpaper in ubuntu using the following code :

gsettings set org.gnome.desktop.background picture-uri 
file:/home/sourajit/Pictures/Wallpapers/skull.jpg

However on executing this nothing happens and I am getting this message :

GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings 
will not be saved or shared with other applications.

I tried this solution but it didn't work.

Further here is the output of :

which gsettings

/home/sourajit/anaconda3/bin/gsettings

Is this location the cause of this problem or there is some other issue? Kindly help.

Sourajit
  • 171
  • 11
  • The easiest way to change wallpaper is to open `nautilus` navigate to the directory holding the wallpaper image, right click on the image and select "Set as Wallpaper". – WinEunuuchs2Unix Jun 27 '18 at 10:25
  • Actually I tried this from [here](https://stackoverflow.com/questions/32264960/how-to-use-change-desktop-wallpaper-using-python-in-ubuntu-14-04-with-unity) . The python version didn't work so thought the last answer mentioned might work, but it didn't work as well. – Sourajit Jun 27 '18 at 13:03

1 Answers1

1

Try this instead:

gsettings set org.gnome.desktop.background picture-uri 'file:///home/sourajit/Pictures/Wallpapers/skull.jpg'
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401