gconftool-2 won't swap wallpaper from cron
I posted this on a Gnome forum, but got no response so I'm trying here....
I am trying to make a script that downloads a picture (my daughter's baby pictures, actually) at random from a web site and sets it as my gnome desktop background. I've seen multiple people suggest
Code:
gconftool-2 --type=string --set /desktop/gnome/background/picture_filename $FILENAME
to change the wallpaper, so I made a nice little script that downloads the wallpaper and does that. Works great from the command line, but fails from cron.
After poking around a little bit, I discovered that `gconftool-2 --ping` returns 2 ("gconfd not running") when run from cron -- so it seems clear that that's the issue: the script either doesn't know how to or isn't allowed to access the desktop-session gconfd.
How does one get around this?
Perhaps it's an environment-specific thing, so I should mention that I'm using Gnome 2.8 on Fedora Core 3.
Thank you very much!
Matthew Miller, Fedora Project Leader