You are not logged in.

#1 2012-04-25 01:07:31

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Calling Zenity from NetworkManager's Dispatcher

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 smile

Offline

Board footer

Powered by FluxBB