I need to show a notification from a cron job. My crontab is something like:
$ crontab -l # m h dom mon dow command * * * * * Display=:0.0 /usr
add DBUS_SESSION_BUS_ADDRESS :
DBUS_SESSION_BUS_ADDRESS
* * * * * DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/notify-send 'helloworld..' 'msg...'