1

I am working on Ubuntu 18.04 and trying to use notify-send via terminal, but nothing happens. It gets stuck for some time and that's it. Can someone please suggest a solution?

In syslog, it is showing the message:
org.kde.notifications:WaitForName: Service was not registered within timeout.

I tried starting the service
org.freedesktop.notification
but I got an error status: unrecognised service.

The command I am trying to run is:
notify-send "usb detected"

9
  • 2
    You are using proper syntax? Show a command that does not work as expected, and then helpers at least will be sure it is not an issue of using a wrong command. Edit your question and add an example of a command that does not behave as you expect.
    – vanadium
    Sep 15, 2020 at 15:54
  • Are you running this command as root? Sep 16, 2020 at 16:59
  • @Zany_Zachary1 no directly from shell for testing Sep 17, 2020 at 17:20
  • Do any other notifications work? What about zenity? Sep 17, 2020 at 18:31
  • @ajgringo619 it didn't. Sep 19, 2020 at 2:21

2 Answers 2

1

After a bit of research, i found that there no service file named org.desktop.Notifications in my ubuntu.

So, i created org.desktop.Notifications.service with Exec having path of Notification-daemon and now it is working.

0

On my (x)ubuntu installation I was required to run notify-send as root in order to get it working. This is not ideal and not really recommended but you can test if it works or not.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .