How to use a variant dictionary (`a{sv}`) in dbus-send

前端 未结 3 1939
梦如初夏
梦如初夏 2021-02-05 18:59

I have some trouble with dbus-send when using a{sv}

Calling a method with in_signature=\'a{ss}\' seems to work using the followin

3条回答
  •  天命终不由人
    2021-02-05 19:17

    Although D-Bus supports signatures such as a{sv}, dbus-send does not. This is from the dbus-send man page:

    "...D-Bus supports more types than these, but dbus-send currently does not. Also, dbus-send does not permit empty containers or nested containers (e.g. arrays of variants)."

    So as far as I can understand it, you cannot send a dict of string:variant using dbus-send.

提交回复
热议问题