Change background in gnome from shell script.

I learnt this just now but this is something I wanted to try for some time. I wanted to know a way to change the background from the shell without actually using the change background GUI option. I always find that option very slow.

So what do you do.. write a shell script

gconftool-2 type string -s /desktop/gnome/background/picture_filename \”`pwd`/$1\”

Use this script to change the desktop. Some other time we will delve into why this works. For now you can just run this shell script with the filename and see your Desktop background change. Cool 🙂

1 thought on “Change background in gnome from shell script.”

This site uses Akismet to reduce spam. Learn how your comment data is processed.