notify-send: cannot show popup under root

Bug #160598 reported by Viktor Kazakov
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)
Invalid
Undecided
Unassigned

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.

Revision history for this message
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
Revision history for this message
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.

Revision history for this message
Ruben Verhack (ruben-verhack) wrote :

Hello,

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.

Thanks.

Revision history for this message
Ruben Verhack (ruben-verhack) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.