Notify-send from cron triggerd bash-script

I do want to use notify-send in a script which will be executed by cron.
It works well if I do execute it as user.

The other parts (non “notify-send”) work well even if executed by cron, but the notify-command didn’t work at all.

So I’ve already searched for answers and found this:
But it doesn’t work. I think it’s because i doesn’t have any “nautilus” service up and running. I think it’s a gnome application, and I do use KDE.

Any suggestions how to set this DBUS_SESSION_BUS_ADDRESS to make notification from cron work?


export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus export DISPLAY=:0;

at the beginning of the script works for me.