I’m trying to get properties that’s been set on an interface and nothing I’ve tried seems to work.
This is how I’m trying to access the property;
result = g_dbus_connection_call_sync (connection,
name,
"/org/gtk/GDBus/TestObject",
"org.gtk.GDBus.TestInterface",
"Get",
g_variant_new ("(s)",
"WritingAlwaysThrowsError"),
G_VARIANT_TYPE("(s)"),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);
I get this error;
**
ERROR:gdbus-example-property.c:56:on_name_appeared: assertion failed (error == NULL): GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method ?Get? (g-dbus-error-quark, 19)
Bail out! ERROR:gdbus-example-property.c:56:on_name_appeared: assertion failed (error == NULL): GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method ?Get? (g-dbus-error-quark, 19)
Aborted (core dumped)
The server has the get_property callback set for the interface but that doesn’t seem to get called, I wrote an implementation for the “Get” method, and that also throws the same error.