all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Fran Burstall (Gmail)" <fran.burstall@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to pass an object-path over d-bus from emacs?
Date: Sat, 23 Jul 2022 12:54:00 +0200	[thread overview]
Message-ID: <87sfmshzg7.fsf@gmx.de> (raw)
In-Reply-To: <CADxS8iiiM02juReJ9WgAGO5ZAoVTY+gYAy=UTvOqL27auNQ8XQ@mail.gmail.com> (Fran Burstall's message of "Sat, 23 Jul 2022 00:02:18 +0100")

"Fran Burstall (Gmail)" <fran.burstall@gmail.com> writes:

Hi,

> Q: How do I feed a parameter of type o (object-path) over d-bus from
> emacs-lisp?
>
> My reading of the docs is that something of the form
>
>     (list :variant (list :object-path "/some/path/here"))
>
> should do the job.  But the receiving application complains:
>
>    playerctl-WARNING **: 20:10:52.843: mpris:trackid is a string, not a
> D-Bus object reference
>
> Any idea what I am missing?

If you just need the object path, say ':object-path "/some/path/here"'
(w/o the surrounding apostrophes). See the examples in
.../test/lisp/net/dbus-tests.el

> ---Fran

Best regards, Michael.



  reply	other threads:[~2022-07-23 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-22 23:02 How to pass an object-path over d-bus from emacs? Fran Burstall (Gmail)
2022-07-23 10:54 ` Michael Albinus [this message]
2022-07-24  8:42   ` Using Tramp from Lisp Jean Louis
2022-07-24  9:43     ` Michael Albinus
2022-07-24 10:12       ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfmshzg7.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=fran.burstall@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.