Re: busctl method array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much Mantas!

On Sat, Nov 30, 2019 at 2:45 PM Mantas Mikulėnas <grawity@xxxxxxxxx> wrote:
>
> On Sat, Nov 30, 2019, 13:52 Damian Ivanov <damianatorrpm@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux