I really read many tutorials, but crontab doesn't start notify send.
What I've tried:
etc/crontab
added at the end:
15 * * * * notify-send 'crontab' 'test'
with crontab interface:
crontab -e
added at the end:
15 * * * * notify-send 'crontab' 'test'
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)";
– d a i s y Oct 08 '16 at 07:23notify-send 'crontab' 'test'
? – Vitor Abella Oct 08 '16 at 07:4416.04
this one worked – Midhun KM Jul 08 '18 at 05:56* * * * * export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ) && DISPLAY=:0 notify-send "Foo bar"
– Saeed Falsafin Dec 21 '18 at 15:03