GNOME Bugzilla – Bug 768555
"man gdbus": unclear what "serialized GVariant" means for args to "gdbus call"
Last modified: 2018-05-24 19:00:01 UTC
(At least observed with glib2-2.48.1-1.fc24.x86_64:) "man gdbus" states > call > Invokes a method on a remote object. Each argument to pass to the > method must be specified as a serialized GVariant except that > strings do not need explicit quotes. The return values are printed > out as serialized GVariant values. There is no (link to a) definition of "serialized GVariant" in this man page, and searching the web for that term finds documents like <https://wiki.gnome.org/Projects/GLib/GVariant/Serialisation> or <https://people.gnome.org/~desrt/gvariant-serialisation.pdf>. But those look like specifications of a binary format, and "gdbus call" presumably expects a textual format? (Also, the binary format would not explain the above remark that "strings do not need explicit quotes", as there appear to be no explicit quotes for strings in the binary format.)
It uses the format described here: https://developer.gnome.org/glib/stable/gvariant-text.html
(In reply to Jan Alexander Steffens (heftig) from comment #1) > It uses the format described here: > https://developer.gnome.org/glib/stable/gvariant-text.html Yup. Patch welcome to fix this. We should probably say ‘GVariant in text format’ rather than ‘serialized GVariant’.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1182.