I have a daemon (netplugd) which can take some actions when my cable is being plugged in or out. These actions can be defined via a bash script. How can I send a notification (as a different user) to my desktop (using bash) that will inform me about the state of the cable.
I have tried the following:
notify-send and knotify --passivepopup but the daemon shows that $DISPLAY is not set.