I'm trying to write a D-Bus service. But I'm confused about the python packages pygobject and dbus-python.
Is it possible to write a D-Bus service with pygobject alone (without using dbus-python)? My understanding was that pygobject provides everything that dbus-python does. Is this correct? Or do I need dbus-python?
I succeeded in calling methods of other programs via D-Bus by just using
pygobject. But how do I provide my own interface and own methods as a service in D-Bus? As far as I understand I have to inherit my interface class from
Gio.DBusInterfaceSkeleton
[1]. But how do I export my own methods?
[1] https://lazka.github.io/pgi-docs/Gio-2.0/classes/DBusInterfaceSkeleton.html