Code:
#!/bin/bash
sleep 2
DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION
XDG_RUNTIME_DIR=/run/user/$(id -u)
DISPLAY=:0.0
notify-send "Connecting..."
Also tried:
#!/usr/bin/env bash
sleep 2
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
DISPLAY=":0"
/usr/bin/notify-send "Connecting..."
exit 0
As you can see i have tried setting everything, but it's still not working.
Ubuntu 20.04 LTS