Desktop notifications from Systemd Service

I’d say the main issue is the system service/notify-send not having access to the user session’s D-Bus instance.

You might try giving it access by using:

[Service]
User=payas
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
4 Likes