From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar Newsgroups: gmane.emacs.help Subject: dbus-register-method and introspection Date: Sun, 21 May 2023 13:40:23 +0200 Message-ID: <87mt1xuchq.fsf@math.uu.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35923"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.3; emacs 29.0.91 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 21 16:49:19 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0kN4-0009A7-OH for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 May 2023 16:49:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0kMb-0008LS-HX; Sun, 21 May 2023 10:48:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0hdJ-0004PT-Vj for help-gnu-emacs@gnu.org; Sun, 21 May 2023 07:53:54 -0400 Original-Received: from sender11-pp-o91.zoho.eu ([31.186.226.249]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0hdH-0003Dy-50 for help-gnu-emacs@gnu.org; Sun, 21 May 2023 07:53:53 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1684670022; cv=none; d=zohomail.eu; s=zohoarc; b=GuY1Mt+CQbGhIgfXHvDPhyCCxR96A/HFc416xJLiKsjTx3j+5zkFRaCWaBA+KD+LpW8+CRxsxcuo8vIxE1MMXyU3boEPsDvuPSfSu7kq7ioByJYJNZCFZE1WYizBQIiZI395zo5fC6gMYOccERT74ryJdC9VE8TsMD0wlv9n08U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1684670022; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=jBuwZ4Umce5vPs3mw7JVS7OYtemObvXTTKJnQlqTRCw=; b=bcAwBKbMDfG6KM/0rCWTSPfMH7Y5YjDxtN0IzevooNxiUBBGVysyOkqwc4pimZ/tQaOIz4OpSPmU6p6C4mcKr2gEetgY2R7Tqjqg2vJYKO+/dBiWq/fmgx3QEvjyRYFw7Wdnbpam34OxY9ehqt3BWlBwsXn+uFLzsvo9zH7Y4eQ= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1684670022; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=jBuwZ4Umce5vPs3mw7JVS7OYtemObvXTTKJnQlqTRCw=; b=jcglL3oUEDxV0EbKNnHiCiQDRKZbBMNCV/5G9jOTA4c3/VhDVfGDsV0ZeG6YNsxT OHhei6SwHWZzlMBOEmFDncOm8lzC5FemuDgLt73ih9RKFWg5dlr0L8BbpOyNinc9WhL zWhmMlQHn8JtkGgMG3KEiNqT6WL6WlgDApZQVSJo= Original-Received: from localhost (81-231-79-170-no600.tbcn.telia.com [81.231.79.170]) by mx.zoho.eu with SMTPS id 1684670020272901.6978386722833; Sun, 21 May 2023 13:53:40 +0200 (CEST) X-ZohoMailClient: External Received-SPF: pass client-ip=31.186.226.249; envelope-from=rahguzar@zohomail.eu; helo=sender11-pp-o91.zoho.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 21 May 2023 10:48:47 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143694 Archived-At: Hello all, I am playing with the d-bus integration in Emacs 29.0.91. When I register a method with `dbus-register-method` I am unable to see what effect it has had. For example if I evaluate the following code in the node (dbus) Register Objects of the manual, (defun my-dbus-method-handler (filename) (if (find-file filename) '(:boolean t) '(:boolean nil))) (dbus-register-method :session "org.freedesktop.TextEditor" "/org/freedesktop/TextEditor" "org.freedesktop.TextEditor" "OpenFile" #'my-dbus-method-handler) and then evaluate (dbus-introspect-xml :session "org.freedesktop.TextEditor" "/org/freedesktop/TextEditor") I get nil. Similarly I can see the service 'org.freedesktop.TextEditor' in the application 'd-feet' but clicking on it doesn't show the method that was registered above and after a while I get a timeout error. This is in contrast to other services for which I can see what interfaces and methods they provide. Is there a simple way to expose such information for the services provided from inside emacs? Thanks in advance, Rahguzar