[systemd-devel] busctl method array

Damian Ivanov damianatorrpm at gmail.com
Sat Nov 30 13:01:17 UTC 2019


Thank you very much Mantas!

On Sat, Nov 30, 2019 at 2:45 PM Mantas Mikulėnas <grawity at gmail.com> wrote:
>
> On Sat, Nov 30, 2019, 13:52 Damian Ivanov <damianatorrpm at gmail.com> wrote:
>>
>> Hello!
>>
>> I have been looking around the documentation and could not find the
>> specification on how to call a method with an array as parameter.
>>  busctl --user call rdns.to.dbus /path/ id.to.interface method_name
>> "sssas" "string" "another_string" "yet_another_string"
>> ["array_string_1", "array_string_2"]
>>
>> Failed to parse '[arr' number of array entries: Invalid argument
>
>
> busctl expects each array item as a separate argument, preceded by the number of items:
>
> busctl --user call rdns.to.dbus /path/ id.to.interface method_name
> "sssas" "string" "another_string" "yet_another_string"
> 2 "array_string_1" "array_string_2"
>
>
>>


More information about the systemd-devel mailing list