Anyway to remove interface from session bus?
斟酌鵬兄
tgckpg at gmail.com
Thu Sep 19 13:14:06 PDT 2013
On Fri, Sep 20, 2013 at 3:20 AM, Thiago Macieira <thiago at kde.org> wrote:
>
> On sexta-feira, 20 de setembro de 2013 02:59:01, 斟酌鵬兄 wrote:
> > Hi,
> >
> > Long story short, in gnome 3, the interface org.freedesktop.Notifications
> > is registered by gnome-shell.
>
> I believe you're talking about service name "org.freedesktop.Notifications",
> not interface. The two concepts use dot-separated reverse domains, but they
> are not the same thing.
>
> > This cause the notify-osd, which I am trying to get it work, failed to
> > register that instance.
> >
> > So I searched for solution to get that instance removed, but none found.
>
> 1) Kill the process
I tried to restart dbus and then immediately run notify-osd after it:
(so that it makes notify-osd to register the name first)
service dbus restart && DISPLAY=:0 /usr/lib/notify-osd/notify-osd
but then the gnome-shell won't start!
> 2) Modify the process so it won't register the name
Sorry but I don't know how to compile gnome-shell myself.
> 3) force a registration by passing the DBUS_NAME_FLAG_REPLACE_EXISTING flag to
> RegisterName
I am not sure how to do that.
Can you make a simple example for me? perhaps python?
>
> Option 3 only works if the current owner also passed the
> DBUS_NAME_FLAG_ALLOW_REPLACEMENT flag. If it didn't, then requestion to
> override will not work.
>
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel Open Source Technology Center
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
--
Regards,
Panguin
More information about the dbus
mailing list