Thank you very much Mantas!

On Sat, Nov 30, 2019 at 2:45 PM Mantas Mikulėnas <graw...@gmail.com> wrote:
>
> On Sat, Nov 30, 2019, 13:52 Damian Ivanov <damianator...@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"
>
>
>>
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to