DaveLevy
Posts: 12
Joined: Sun Feb 17, 2019 9:56 am

How to start a notification daemon

Sun Nov 13, 2022 12:20 pm

I am using.

Code: Select all

Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
I am trying to use notify-send. It does not display to the desktop, but does display when queried an error status of 0.

I have tried to install the mate-notification daemon and then the Gnome notification daemon. Both fail to connect to desktop.

This is the gnome error message.

Code: Select all

No protocol specified
Unable to init server: Could not connect: Connection refused
(notification-daemon:9892): Gtk-WARNING **: 12:13:14.871: cannot open display: :10.0
xeyes works

DISPLAY=:10.0 is the default set when opening a Terminal window.

What am I doing wrong?

User avatar
kerry_s
Posts: 5388
Joined: Thu Jan 30, 2020 7:14 pm

Re: How to start a notification daemon

Sun Nov 13, 2022 12:53 pm

those are for the wrong desktop.
remove them, then run this:

Code: Select all

sudo apt -y install xfce4-notifyd && notify-send 'your notifications look like this'

User avatar
thagrol
Posts: 9243
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: How to start a notification daemon

Sun Nov 13, 2022 2:30 pm

DaveLevy wrote:
Sun Nov 13, 2022 12:20 pm
DISPLAY=:10.0 is the default set when opening a Terminal window.
That looks unusual. A locally connected display would usually be :0.0. :10.0 (or sometimes localhost:10.0) is what I'd expect when connecting over ssh with X11 forwarding enabled on the client. For that to work you need to have an X server running on the client side.

Of course, I'm referring to the default configuration of RPiOS, you configuration may be different.

VNC in virtual desktop mode may also use :10. In the default mode that too wil be using :0.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

DaveLevy
Posts: 12
Joined: Sun Feb 17, 2019 9:56 am

Re: How to start a notification daemon

Sat Dec 17, 2022 10:53 pm

kerry_s wrote:
Sun Nov 13, 2022 12:53 pm
those are for the wrong desktop.
remove them, then run this:

Code: Select all

sudo apt -y install xfce4-notifyd && notify-send 'your notifications look like this'
Thank you this seems to work

Return to “Troubleshooting”