Hi Francesco,

Francesco Poli wrote:
> > > I have notification-daemon installed on my system:
> > 
> > That's strange.
> > 
> > Can you send me the output of this command on the system where this
> > happened?
> > 
> > $ fgrep org.freedesktop.Notifications /usr/share/dbus-1/services/*.service
> 
>   $ fgrep org.freedesktop.Notifications /usr/share/dbus-1/services/*.service
>   $ fgrep -i org.freedesktop.Notifications 
> /usr/share/dbus-1/services/*.service
>   $ fgrep -i Notification /usr/share/dbus-1/services/*.service
>   $
> 
> No output at all.

Ok, that's _not_ what I expected and hence leads us closer.

> Which file did you expect me to find?

Something like this:

$ fgrep org.freedesktop.Notifications /usr/share/dbus-1/services/*.service
/usr/share/dbus-1/services/com.deepin.dde.freedesktop.Notification.service:Nameorg.freedesktop.Notifications
/usr/share/dbus-1/services/org.freedesktop.mate.Notifications.service:Name=org.freedesktop.Notifications
/usr/share/dbus-1/services/org.kde.plasma.Notifications.service:Name=org.freedesktop.Notifications
/usr/share/dbus-1/services/org.kde.plasma.Notifications.service:Exec=/usr/bin/plasma_waitforname
 org.freedesktop.Notifications
/usr/share/dbus-1/services/org.knopwob.dunst.service:Name=org.freedesktop.Notifications
/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service:Name=org.freedesktop.Notifications

> Package notification-daemon does not seem to ship any *.service file:
> 
>   $ dpkg -L notification-daemon | grep -i service

But other notification daemons seem to do.

So despite it's name "notification-daemon" looking like being the most
generic one of all of them, it looks to me as if it does not to
provide that interface. Very unexpected.

> P.S.: I dropped the moreinfo tag, but, of course, feel free to re-set
>       it, in case you need any other answer from me!

Perfectly fine. Need to think about this and investigate further.

So
https://codesearch.debian.net/search?q=Name%3Dorg.freedesktop.Notifications
leads to this package list:

ukui-notification-daemon
deepin-notifications
plasma-workspace
mako-notifier
xfce4-notifyd
mate-notification-daemon
notify-osd

So a short-term workaround seems to depend on only an alternative list
of these notification daemons.

It's though clearly not all notification-daemons in Debian. At least
lxqt-notificationd and some window manager/desktop environments seem
to provide "notification-daemon", but not have such a file, too.

But since at least ukui-notification-daemon, deepin-notifications and
mate-notification-daemon are AFAIK based on GNOME's
notification-daemon, I tried to find something in it's changelog,
but I only found this in the upstream changelog from 2011 (!):

  NEW in 0.7.1:
  ==============
  - Don't use DBus activation

And this upstream commit:

commit 1ad20d22098bc7718614a8a87744a2c22d5438d0
Author: Matthias Clasen <mcla...@redhat.com>
Date:   Tue Feb 15 09:52:11 2011 -0500

    Don't use dbus activation

    Dbus activation causes a race with gnome-shell at session startup.
    Instead, install a regular desktop file, so we can make
    notification-daemon a required component of the fallback session.
    Finally, install notification-daemon in bindir to avoid fiddling
    with libexecdir when generating the desktop file.

 data/Makefile.am                              | 8 +++++---
 data/notification-daemon.desktop.in           | 7 +++++++
 data/org.freedesktop.Notifications.service.in | 3 ---
 src/Makefile.am                               | 2 +-
 4 files changed, 13 insertions(+), 7 deletions(-)

Not sure though if it's really related, because the commit message
seems to sound more like they just disabled starting
notification-daemon via D-Bus and starred it always by default.

But maybe I'm also looking at the wrong place. At least
"org.freedesktop.Notifications" shows up all over
notification-daemon's source code:
https://codesearch.debian.net/search?q=package%3Anotification-daemon+org.freedesktop.Notifications+package%3A%5CQnotification-daemon%5CE&literal=1

Then again, not having such a service file seems to fit with your
observations.

Since I'm neither well-versed in GNOME stuff nor in D-Bus stuff, I'm
bit out of (better) ideas at the moment.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to