PDA

View Full Version : Where does the Gnome desktop background save its settings?



daou
August 26th, 2006, 01:02 PM
I'll repeat the title: Where does the Gnome desktop background utility in Ubuntu save it's preferences?

I like to use custom svg backgrounds with gradients as my wallpapers. If nothing similar exists and no one is interested in developing it, I'm planning to make a small program that changes the gradient of the background according to the time of day. For example, light colors during the morning and day, and then darker ones as night approaches.

I would just need to know where the gradient color settings are stored.

somnoliento
August 26th, 2006, 01:26 PM
I think you need the Gconf file:

~/.gconf/desktop/gnome/background/%gconf.xml

You can modify it directly, or using the gconftool command line utility. Changes should be visible immediately.

daou
August 26th, 2006, 02:09 PM
Exactly what I was looking for. Thanks.

Revert
August 26th, 2006, 03:16 PM
I'd be interested in using that if you end up making it; sounds cool.

daou
August 26th, 2006, 04:39 PM
I probably will. I just tested the bare bones structure I made for reading and setting the hex values from gconftools with a system command from C and it works. The background color updates after about a second. I will have to let it sit for a couple of days though, busy with other stuff.

X.Cyclop
August 27th, 2006, 03:40 AM
Open a terminal and type:

gconf-editor

/desktop/gnome/background > picture_filename and its value is your wallpaper.;)

daou
August 27th, 2006, 07:38 AM
/desktop/gnome/background > picture_filename and its value is your wallpaper.

No changing backgrounds, just the gradient colors:



sprintf(command_buffer, "gconftool-2 --type string --set /desktop/gnome/background/secondary_color \"#%x\"",color);

system(command_buffer);

daou
September 6th, 2006, 09:18 AM
I'd be interested in using that if you end up making it; sounds cool.

If you are still interested, I got the program working and you can get it here:
http://colorchain.wiki.com/