qdbus does not forward booleans in args correctly
Bug #458654 reported by
Daniel Hahler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qt4-x11 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ qdbus org.kde.amarok /TrackList AddTrack /path/to/file.mp3 false
0
results in the following being logged with dbus-monitor:
method call sender=:1.130 -> dest=org.kde.amarok serial=8 path=/TrackList; interface=(null); member=AddTrack
string "/path/to/file.mp3"
boolean true
I've tried using "0" to define the boolean, too.
Am I doing anything wrong? The documentation (e.g. man page) is sparse/
To post a comment you must log in.
I have the same problem.
Moreover if you set "export QDBUS_DEBUG=1" before using qdbus you see that whatever you write is interpreted as string.
I solved using dbus-send
I used
dbus-send --system --print-reply --type=method_call --dest=org.bluez /org/bluez/ 1384/hci1 org.bluez. Adapter. SetProperty string:Powered variant: boolean: true
instead of
qdbus --system org.bluez /org/bluez/ 1384/hci1 org.bluez. Adapter. SetProperty Powered true