Root crontab
Code: Select all
SHELL=/bin/bash
DISPLAY=":0.0"
XAUTHORITY="/home/me/.Xauthority"
XDG_RUNTIME_DIR="/run/user/1000"
00 10 * * * /usr/local/sbin/rsync_backup >> /var/log/rsync_backup.log
00 21 * * * /usr/local/sbin/clonezilla_backup > /dev/null
Code: Select all
zenity --notification --window-icon="info" --text="Daily backup started - `date +%Y-%m-%d` @ `date +%H:%M`"
zenity --warning --text="This is a test"
from root's crontab (or the terminal, for that matter), the message window works as expected. When I try to run the notification command from the terminal, I get this error:
Code: Select all
zenity --notification --text="Testing"
** (zenity:24500): WARNING **: 15:44:58.055: Error showing notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files