Notification from Jami not showing up

Hi, I am running Qubes 4.3 and template Fedora 42.
I install Jami in a Qube and sign in to my PBX.
I place a call to Jami and no notification shows up on the screen (except inside Jami, so if it is in the background I won’t get any indication a phonecall is coming in).

But! :wink:

If I start xfce4-notifyd manually then a notification shows up!

So I tried to find out how to start xfce4-notifyd inside the Qubes I use for Jami but I ran into troubles there.
I can see in journalctl the following messages

May 07 10:30:40 disp7592 dbus-broker-launch[769]: Service file '/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service' is not named after the D-Bus name 'org.freedesktop.Notifications'.
May 07 10:30:40 disp7592 dbus-broker-launch[769]: Service file '/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifyd.service' is not named after the D-Bus name 'org.xfce.Notifyd'.

Which as far as I understand is systemd trying to create a service for xfce4-notifyd but no such serivice shows up (and the message is normal actually since it is a user systemd service and not a system service, d-bus makes an exception for this mismatch in names for user services).

So I tried to start a notify daemon through a .desktop file in .configure/autostart but no dice there either, I placed the following in the .desktop file

[Desktop Entry]
Type=Application
Name=xfce4-notifyd
Exec=/usr/lib64/xfce4/notifyd/xfce4-notifyd
OnlyShowIn=XFCE
NoDisplay=true
StartupNotify=false
Terminal=false
Hidden=false

but still no notify daemon is started.

Any ideas on how I can get Jami to show notifications?

1 Like

Ok, the following dbus command

dbus-send --session --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID string:org.freedesktop.Notifications

tells me that qubes-notification-proxy-client is taking up the dbus so the xfce4-notifyd doesn’t start automatically.
If I manually start xfce4-notifyd on the command line and check that dbus command again then I see that xfce4-notifyd has taken over the dbus.
Im then thinking about disabling qubes-notification-proxy-client on the Qube.
Just have to figure out how to do that.

Aha, systemd overwrites
By putting the following

[Service]
ExecStart=
ExecStart=/usr/lib64/xfce4/notifyd/xfce4-notifyd
BusName=org.freedesktop.Notifications
RestartSec=1s
RestartMaxDelaySec=30s
RestartSteps=10
Restart=always
RestartPreventExitStatus=126 127

into

.config/systemd/user/qubes-notification-agent.service.d/override.conf

then xfce4-notifyd is started instead of the qubes one.
Now Jami is showing notifications as it should.

The empty ExecStart= needed to be there, else I got an error.

1 Like