I am using FFS for years on my Ubuntu server. I am trying for nearly the same time to get a sudo cronjob for a batch sync to work without success.
I tried nearly everything I found in the web but all is stopping with this error message:
Error: Unable to initialize GTK+, is DISPLAY set properly?
Is there a working instruction?
here the latest entry in crontab which is sometimes working for non sudo but never for sudo
in sudoers FreeFileSync is allowed to be run without password
00 00 * * * DISPLAY=:10.0 /usr/local/bin/FreeFileSync /home/homer/Documents/Sicherungen2BackupSicherungen.ffs_batch > /home/homer/ffs-daten.log/Sich2BkpSich_`date +\%Y-\%m-\%d_\%H:\%M:\%S`.log 2>&1