I'm writing a script for wallpaper under XFCE
No problem if I run it in a terminal
But i'd like to put it on a cron
This script use these command
Code: Select all
/usr/bin/xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitor0/workspace0/last-image --set MyPicture.jpg
I've read that to use it with a cron, I should use the DBUS_SESSION_BUS_ADDRESS variable to define the user environment
So I tried
Code: Select all
*/1 * * * * yourUsername source $HOME/.profile ; source $HOME/.bashrc; env DISPLAY=:0.0 /home/path/to/countdown/thScript.sh 2>/tmp/cron_errors.txt
Code: Select all
env DBUS_SESSION_BUS_ADDRESS=[path] xfconf-query ....
But nothing works....
So, I need help to use this script in a crontab .
All ideas is welcome,
thx