From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Unable to register dbus method Date: Thu, 13 Dec 2012 10:08:55 +0100 Message-ID: <87ip86s4ig.fsf@gmx.de> References: <87vcc72uc0.fsf@fimbulvetr.bsc.es> <87ip87uke1.fsf@gmx.de> <87ip87x9d1.fsf@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355389748 10434 80.91.229.3 (13 Dec 2012 09:09:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2012 09:09:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 13 10:09:23 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tj4nC-0003EZ-OT for ged-emacs-devel@m.gmane.org; Thu, 13 Dec 2012 10:09:22 +0100 Original-Received: from localhost ([::1]:41473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4mz-0000Li-RK for ged-emacs-devel@m.gmane.org; Thu, 13 Dec 2012 04:09:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj4mw-0000La-Qk for emacs-devel@gnu.org; Thu, 13 Dec 2012 04:09:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj4mv-00015r-L6 for emacs-devel@gnu.org; Thu, 13 Dec 2012 04:09:06 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:44620) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Tj4mv-00015j-BC for emacs-devel@gnu.org; Thu, 13 Dec 2012 04:09:05 -0500 Original-Received: (qmail invoked by alias); 13 Dec 2012 09:09:03 -0000 Original-Received: from p57BB98A0.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.160] by mail.gmx.net (mp016) with SMTP; 13 Dec 2012 10:09:03 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX194lZ4HGmR4GUW22HwjoLnPWWuTElLbUSLKkWKPe1 088RpcMKcYhV2+ In-Reply-To: <87ip87x9d1.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= =?utf-8?Q?=22's?= message of "Wed, 12 Dec 2012 22:12:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155526 Archived-At: Llu=C3=ADs writes: Hi Llu=C3=ADs, >> 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 whom= ever 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.