emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to register dbus method


From: Michael Albinus
Subject: Re: Unable to register dbus method
Date: Thu, 13 Dec 2012 10:08:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Lluís <address@hidden> writes:

Hi Lluís,

>> In order to bring your application in front of the service, you could
>> use `dbus-register-service' with the `:replace-existing' flag.
>
> Aha! The `:replace-existing' did the trick and it's now working again.

Good.

> Does this mean I should resend the method invocation through DBus to whomever 
> is
> not the "primary owner"? Sorry for the DBus-centric questions.

No. D-Bus uses a queue of registered applications for every service. Every
application, like Evolution or Emacs, can register for a service. First
request wins. All other applications are queued for the service.

If the application, which "owns" the service, is stopped, the next
waiting application in the queue becomes the owner, until the queue is
empty.

The `:replace-existing' flag breaks this rule. Your application is not
queued at the end, but becomes the service name owner immediately.

> Thanks a lot,
>   Lluis

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]