After 2 days of googling.
I just found that the notification system is somewhat hard coded in
gnome-shell.

Here:
https://mail.gnome.org/archives/commits-list/2011-February/msg10655.html

As the mail above. I think they have taken the name
org.freedesktop.Notifications.

Thus this makes notify-osd cannot register the instance(already taken):

$ /usr/lib/notify-osd/notify-osd
** (notify-osd:6207): WARNING **: Another instance has already registered
org.freedesktop.Notifications
** (notify-osd:6207): WARNING **: Could not register instance

Also, the first mail I post which created an error about " Got error "Did
not receive a reply. ".
That was my mistake for running the notify-osd in root (since they are two
different sessions and dbus relies on sessions)

So my question is:
How do I override these settings?
Say can I tell gnome-shell to not taking that instance or any other
workaround to make notify-osd to work?

I just really needed some help, every link in google has turned purple. I
am starting to feel helpless:(

PS:
There is a outdated fix about editing
/usr/share/dbus-1/services/org.freedesktop.Notifications.service
but that won't work in gnome 3.4 (that file doesn't even exists)

And there is another outdate fix about editing
/usr/share/gnome-session/<fallback>.session's DefaltProvider field
and that won't work either. ( there is no such thing, adding it won't work,
tried.)



On Tue, Sep 10, 2013 at 1:30 AM, 斟酌鵬兄 <[email protected]> wrote:

> I am using wheezy and gnome 3.
> I just did a little research on google that I think this is somewhat
> related to dbus?
> (althought I don't know what it does. but the output there has a line
> contains dbus_create_service_instance? )
>
> This is the related bug report:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640120
>
> However at the end it said it is fixed in version 0.9.32.
> But I have the version:
> notify-osd:
>   Installed: 0.9.34-2
>   Candidate: 0.9.34-2
>
> Do I need to modify the file in here?
> /etc/xdg/autostart/notify-osd.desktop
>
> [Desktop Entry]
> Name=Notify OSD
> Comment=Display notifications
> Exec=/usr/lib/notify-osd/notify-osd
> Terminal=false
> Type=Application
> OnlyShowIn=LXDE;OPENBOX;GNOME;XFCE;
> X-GNOME-Autostart-enabled=false
>
> Sorry for didn't provide much information. I was just frustrated to find
> the solution:(
>
>
>
>
> On Tue, Sep 10, 2013 at 1:21 AM, Sharon Kimble <[email protected]>wrote:
>
>> On Tue, 10 Sep 2013 01:01:17 +0800
>> 斟酌鵬兄 <[email protected]> wrote:
>>
>> > I got these errors when trying to start the daemon:
>> >
>> >
>> > ** (notify-osd:4791): WARNING **: dbus_create_service_instance(): Got
>> > error "Did not receive a reply. Possible causes include: the remote
>> > application did not send a reply, the message bus security policy
>> > blocked the reply, the reply timeout expired, or the network
>> > connection was broken."
>> >
>> >
>> > ** (notify-osd:4791): WARNING **: Could not register instance
>> >
>> > I don't know how to fix it.
>> > I've removed package notification-daemon but it seems gnome is still
>> > using it when I run:
>> > notify-send test.
>> >
>> >
>> > What do I do now?
>>
>> You give us *full* information, like what version of debian? What
>> command did you run to try to start the daemon? How did you remove
>> 'notification-daemon'? Which version of Gnome?
>>
>> Sharon.
>> --
>> A taste of linux = http://www.sharons.org.uk
>> efever = http://www.efever.blogspot.com/
>> efever = http://sharon04.livejournal.com/
>> Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.0.4
>> Registered Linux user 334501
>>
>
>
>
> --
> Regards,
> Panguin
>



-- 
Regards,
Panguin

Reply via email to