[systemd-devel] busctl method array

Mantas Mikulėnas grawity at gmail.com
Sat Nov 30 12:45:18 UTC 2019


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"



>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20191130/e4a71de8/attachment.html>


More information about the systemd-devel mailing list