Closed hh closed 8 years ago
:+1:
The example given by pydbus is too simple to reference.
@hh After struggling to look up Gio doc at https://developer.gnome.org/gio/stable/gdbus-lowlevel.html and https://developer.gnome.org/gio/stable/gdbus-convenience.html, I build a simple DBus server at https://github.com/lvht/hello-dbus/blob/master/foo.py, without python-dbus
And the foo.py should be a good start to replace the python-dbus
lib.
@hh I have made a try to replace python-dbus
with gi.repository
at c4feb2ab959b367944c80a7fb44a954443133f4b, but still not worked. FYI.
@hh maybe the pydbus
is not a must :smiling_imp:
Nice!
:+1:
I've been having trouble on newer systems getting dbus-python up and running due to it's dependencies not being available on newer systems. It looks like it may not be the best option, and is slowly losing support.
pydbus provides us some better integration with systemd prevalent on newer systems (most of the off-the-shelf embedded world / raspi, beaglebone etc).
From http://cgit.freedesktop.org/dbus/dbus-python/tree/README#n36 :
Alternative underlying lib http://www.freedesktop.org/wiki/Software/DBusBindings/ :
https://developer.gnome.org/gio/2.26/gdbus-convenience.html https://developer.gnome.org/gio/2.26/gdbus-lowlevel.html
Decent looking Python binding: https://github.com/LEW21/pydbus