MPRIS AddTrack

Asked by myzinsky

dbus-send --print-reply --type=method_call --dest=org.mpris.exaile /TrackList org.freedesktop.MediaPlayer.AddTrack file:///home/nachbrenner/test.mp3 FALSE

dbus-send: Unknown type "file"

what im doing wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
Exaile Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Sasongko (sjohannes) said :
#1

Wrong syntax on the method arguments.

$ man dbus-send

[snip]
The object path and the name of the message to send must always be
specified. Following arguments, if any, are the message contents
(message arguments). These are given as a type name, a colon, and then
the value of the argument. The possible type names are: string, int32,
uint32, double, byte, boolean. (D-Bus supports more types than these,
but dbus-send currently does not.)

Here is an example invocation:

dbus-send --dest='org.freedesktop.ExampleName \
          /org/freedesktop/sample/object/name \
          org.freedesktop.ExampleInterface.ExampleMethod \
          int32:47 string:'hello world' double:65.32
[/snip]

Can you help with this problem?

Provide an answer of your own, or ask myzinsky for more information if necessary.

To post a message you must log in.