Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509618 - x11-misc/notification-daemon: org.freedesktop.Notifications was not provided by any .service files (?)
Summary: x11-misc/notification-daemon: org.freedesktop.Notifications was not provided ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-05 10:09 UTC by Rick Farina (Zero_Chaos)
Modified: 2014-05-06 20:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Farina (Zero_Chaos) gentoo-dev 2014-05-05 10:09:25 UTC
Sorry if this is a little vague, I'm out of my league describing this.

I recently wanted to test networkmanager by request, and so I installed it.  I use xfce which is gnome-compatable(ish) and so I installed nm-applet as suggested by the network manager page: https://wiki.gentoo.org/wiki/NetworkManager

When I installed it, it refused to run with a "The name org.freedesktop.Notifications was not provided by any .service files" error.  I reloaded dbus and all that but still no joy.

A quick google said to install notification-daemon, so I typed "emerge notification-daemon" which grabbed virtual/notification-daemon and the default provider of x11-misc/notification-daemon.  Despite reloading dbus, I got the exact same error.  I noticed a gnome use flag, so I set it for fun, and magically everything worked.

I'm not sure exactly what is going on here, but if someone who knows what they are doing could look into it that would be incredible.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-05-05 11:39:40 UTC
FTR, I made Rick install xfce-notifyd and it solved the issue of nm-applet so it seems for some reason notification-daemon does not comply to the notification spec when installed with USE=-gnome. Maybe it is not being autostarted as mandated by the spec ?
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-05-05 11:41:21 UTC
See https://developer.gnome.org/notification-spec/
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-05-05 13:53:18 UTC
I can't verify. Installed notification-daemon-0.7.6 which installed:

$ qlist notification-daemon
/usr/share/applications/notification-daemon.desktop
/usr/share/dbus-1/services/org.freedesktop.Notifications.service

Followed by:

$ notify-send foobar

Followed by `xprop` to check it's notification-daemon that displayed the notification properly:

$ xprop 
[ snip ... ]
WM_CLASS(STRING) = "notification-daemon", "Notification-daemon"
[ ... snip ]

(Mouse pointer pointed to the just displayed notification)

So even if the "Settings > Session and Startup > ..." doesn't make use of the notification-daemon.desktop for autostarting it during Xfce start, the dbus initialization should automatically display it anyway because we install the Gentoo -specific org.freedesktop.Notifications.service file (the file is created from the ebuild)

I suspect Rick has more wide ranging issues with sys-apps/dbus, perhaps more restarting is required after an dbus upgrade, or perhaps glib or dbus-glib (or both) needs an rebuild? Just a wild guess.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-05-05 13:56:33 UTC
(In reply to Gilles Dartiguelongue from comment #1)
> FTR, I made Rick install xfce-notifyd and it solved the issue of nm-applet
> so it seems for some reason notification-daemon does not comply to the
> notification spec when installed with USE=-gnome. Maybe it is not being
> autostarted as mandated by the spec ?

What USE='gnome'? I don't see one anywhere.

And no, notification-daemon installs has both, the internal org.freedesktop.Notifications and the external org.freedesktop.Notifications through the .service file, so that's not it.
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2014-05-06 20:51:26 UTC
(In reply to Samuli Suominen from comment #4)
> (In reply to Gilles Dartiguelongue from comment #1)
> > FTR, I made Rick install xfce-notifyd and it solved the issue of nm-applet
> > so it seems for some reason notification-daemon does not comply to the
> > notification spec when installed with USE=-gnome. Maybe it is not being
> > autostarted as mandated by the spec ?
> 
> What USE='gnome'? I don't see one anywhere.
> 
it's on the virtual
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2014-05-06 20:52:59 UTC
(In reply to Samuli Suominen from comment #3)

> I suspect Rick has more wide ranging issues with sys-apps/dbus, perhaps more
> restarting is required after an dbus upgrade, or perhaps glib or dbus-glib
> (or both) needs an rebuild? Just a wild guess.

If the xfce maintainer can't replicate this bug than I'm fine with admitting there may have been a dbus issue on my end or for some crazy reason the first "/etc/init.d/dbus reload" simply didn't do the job right.  I saw NO reason for this to occur at all, and since it can't be replicated I'm good with closing invalid.  If anyone disagrees with that feel free to reopen.

Thanks for the attempted verification.