PDA

View Full Version : How to set new image desktop background on ubunutu 11.10 by command



sompoch
October 16th, 2011, 07:30 AM
By the past version of ubuntu (<11.04),i can change image desktop background by command line :

gconftool-2 -t string -s /desktop/gnome/background/picture_filename "$PICTUREDIR$NEWBACKGROUND"

So,today after upgrade ubuntu to 11.10 that command not work and not respond anything.
:p

Hairy_Palms
October 16th, 2011, 11:02 PM
gconf is deprecated for gsettings now, the new way is

gsettings set org.gnome.desktop.background picture-uri file:///some/path/to/picture.png

sompoch
October 17th, 2011, 03:46 AM
gconf is deprecated for gsettings now, the new way is

gsettings set org.gnome.desktop.background picture-uri file:///some/path/to/picture.png

Thank you , It's work

wreckedred
January 7th, 2012, 07:05 PM
I am trying to use this command in cron and it fails...works great from my terminal but just will not run from cron. I have tried several things and wondered if you might have a suggestion