notify-send: cannot show popup under root

Bug #160598 reported by Viktor Kazakov on 2007-11-06
This bug affects 5 people
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)

Bug Description

Binary package hint: libnotify-bin

:~$ sudo notify-send "Hello"
libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Basilio Kublik (sourcercito) wrote :

you shouldn't launch this command with sudo, since it won't have access to dbus.

Changed in libnotify:
status: New → Invalid
Viktor Kazakov (kvs16) wrote :

Hm, well... How do I send a notification under root then?

For example, I want a popup notification from one of the scripts in /etc/ppp/ip-up.d/, launched by pppd when connection established. But pppd is run with root privileges. And when it tries to run a script with on-screen notification, it fails.

Ruben Verhack (ruben-verhack) wrote :


I'm having the same issues. I'm running a script using udev when a device is plugged in. And I would like to send a notification to the current user. But this doesn't seem possible.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers