I am trying to run this script which changes my desktops background to a random picture in a directory. It works from the command line, and the cronjob gets run (added output and it gets spit out to a log file), but I can't get it to change my background. Here's my current line (set to run every minute for testing).
01 * * * * username /home/username/.wallpapers/flip.sh
Any Ideas?
means it runs every hour, if you want to run it every minute, it has to be
The syntax is also described on Wikipedia.
Or use GNOME Schedule as proposed.
Is
flip.sh
executable?Edit: And true, the username has to be removed (in the system wide cron file, see silent's comment).Maybe this CronHowto also helps.
cron scripts have no access to the user's display. Use something like wallpapoz instead.
bug: https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/285937
my version:
and it's works on Fedora 12