PrintLogo

Setting the Gnome Desktop Background With a Script




You can use these two commands to set the Gnome desktop background:

gconftool-2 -t str --set /desktop/gnome/background/picture_filename /path/pic.png
gconftool-2 -t str --set /desktop/gnome/background/picture_options "centered"

This will put the picture in the center. If you want to fill the background with the picture use stretched.



This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art409.html

Copyright 1997-2008 NetAdminTools.com. Read our Terms of Use.