You are not logged in.
I'm having some issues trying to notify the user something happened when the interface went up.
I'm trying to use Zenity to make a notification in the gnome-shell, but as for NetworkManager to work, it has to be run as root.
When I try to run zenity as root it reports:
sudo zenity --notification --text="Just an example..." --display=:0
** (zenity:7014): WARNING **: Error showing notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
Note that I'm passing the display paremeter because $DISPLAY is not on the root environment.
I'm trying to make this script the least invasive as possible and I would really appreciate some input
Offline