Question : cron not showing notifications
Answered by : arno-deceuninck
eval "export $(pgrep -u $LOGNAME gnome-session | head -n 1 | xargs -I{} cat /proc/{}/environ | egrep -z DBUS_SESSION_BUS_ADDRESS)";
/usr/bin/notify-send "Hey" "You've got a notification :-)"
Source : https://askubuntu.com/questions/298608/notify-send-doesnt-work-from-crontab | Last Update : Thu, 27 Aug 20