Cron job: how to run a script that requires to open display?
You will need a valid DISPLAY and XAUTHORITY to use X-Programms in Cron! To set DISPLAY is very easy, type in the Bash: export DISPLAY=”:0.0″ In order to get a valid XAUTHORITY you have to look for it. Under Debian/Gnome/gdm3 they are saved in var/run/gdm3/*/database I used the following script: export DISPLAY=”:0.0″ [ -z $USER … Read more