Hello people.
I need to know how to add methods that can be exported over DBus.
I tried an approach similar to
https://live.gnome.org/Vala/DBusServerSamplebut that failed with :
Code:
GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion `object_path != NULL && g_variant_is_object_path (object_path)' failed
In my application constructor I have set object_id and my application appears in D-Feet with the standard interfaces.
I have also tried to make a method public in my Application class that derives from Gtk.Application and that as expected did not help.
I have also found all my actions under window and application interfaces.
Is that the prefered way to export methods over DBus?