<div dir="ltr">Hey Aleksander,<div><br></div><div>I was able to find the problem! It turns out I was silly and forgot to set <font face="monospace">GError* error = NULL</font> initially. 😅 </div><div><br></div><div>Thanks for all the help and explanation :)<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Florence</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 12, 2021 at 12:30 AM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Florence,<br>
<br>
><br>
> Ah, I see, thanks for the explanation! However the command below still returns FALSE for me unfortunately...<br>
>  g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON (skeleton),<br>
>                                    connection,<br>
>                                    path,<br>
>                                    &error))<br>
> As mentioned before the skeleton is the MmGdbusSimEap* created by the command mm_gdbus_sim_eap_skeleton_new () command. I have checked that G_DBUS_INTERFACE_SKELETON (skeleton) correctly returns a GDBusInterfaceSkeleton type as well.<br>
><br>
<br>
And in this time it also doesn't set the GError?<br>
<br>
If the export() method returns FALSE without error set, it can only be<br>
due to a g_return_if_fail() check. The ones done in this method,<br>
according to the glib sources, would be:<br>
<br>
  g_return_val_if_fail (G_IS_DBUS_INTERFACE_SKELETON (interface_), FALSE);<br>
<br>
Is the input object a valid GDBusInterfaceSkeleton?<br>
<br>
  g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), FALSE);<br>
<br>
Is the connection a valid GDBusConnection?<br>
<br>
  g_return_val_if_fail (g_variant_is_object_path (object_path), FALSE);<br>
<br>
Is the given path a valid DBus object path?<br>
<br>
  g_return_val_if_fail (error == NULL || *error == NULL, FALSE);<br>
<br>
Is error not required, and if it is, is it not initialized already?<br>
<br>
  /* Assert that the object path is the same for multiple connections here */<br>
  g_return_val_if_fail (interface_->priv->object_path == NULL ||<br>
                        g_strcmp0 (interface_->priv->object_path,<br>
object_path) == 0, FALSE);<br>
<br>
If the export() has been done already in a different connection, is<br>
this new export still for the same object path as before?<br>
<br>
You'll need to reply to those questions above.<br>
<br>
If the export() method returns FALSE but with error set, then please<br>
print what the actual error->message is.<br>
<br>
Cheers!<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div>