gconf - Changing wallpapers in python -
i'm running maverick on machine, , i'm trying write script change wallpapers in python. heres progress far.
import gconf client = gconf.client_get_default() current_bg = client.get_string("/desktop/gnome/background/picture_filename") client.set_string("/desktop/gnome/background/picture_filename","home/tsudot/pictures/zombie.jpg")
after running script blank wallpaper. shows me white screen.
i examined gcnonf.xml
file , change has been made there.
can me out?
the problem you're missing /
@ beginning of home/tsudot/pictures/zombie.jpg
file isn't found. avoid problem happening in future, perhaps change code keep filename in variable , check before trying set config option that file exists os.path.exists(filename)
.
Comments
Post a Comment