gdbus-codegen docs Example 21
Submitted by David Stockwell
Assigned to David Zeuthen
Sample code in Example 21 at http://people.freedesktop.org/~david/gio-gdbus-codegen-20110412/gdbus-example-gdbus-codegen.html crashes with a seg fault.
Problem is call to g_dbus_interface_get_info (interface)->name. In the client-side, g_dbus_interface_get_info always returns NULL.
I fixed by casting interface to G_DBUS_PROXY and calling g_dbus_proxy_get_interface_name instead, giving the intended result.
FWIW, am running Fedora 20 which is distributing 2.38 of gdbus (I think).