Using dbus-send to call GetAll
dbus
Solution
You need to specify interface name as a parameter to GetAll. This example works for me (I have UDisks2 instead of UDisks but otherwise it's similar):
dbus-send --system --print-reply \
--dest=org.freedesktop.UDisks2 \
/org/freedesktop/UDisks2/block_devices/loop0
org.freedesktop.DBus.Properties.GetAll
string:"org.freedesktop.UDisks2.Block"
Problem
I tried my luck with: ``` dbus-send --system --print-reply \ --dest=org.freedesktop.UDisks \ /org/freedesktop/UIDisks/devices/md0 \ org.freedesktop.DBus.Properties.GetAll \ string:"" ``` If I'm using d-free and send "" as parameter to GetAll I get a long list of output Trying the code above just gives an error: ``` Error org.freedesktop.DBus.Error.UnknownMethod: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist ``` So I'm doing something wrong, but I've no idea what's wrong. I searched for a solution but did not come up with a decent solution. Maybe it's to trivial, but I have no idea....