Sample program for GDbus signals

user6325262 picture user6325262 · May 12, 2016 · Viewed 11.4k times · Source

I am new to GDbus programming. I need to implement a simple Dbus send-receive message (Signals) using Dbus Glib. I tried to google some sample programs, but couldn't find.

Can anyone post any such sample program or point me to some sample program tutorial?

Thanks in advance...

Thanks, SB

Answer

nilanjanaLodh picture nilanjanaLodh · May 31, 2017

I think following these steps could help:

  1. Read the wikipedia article on DBus to get a good understanding of the DBus architecture.
  2. Follow it up with these slides(atleast the first few slides about the architecture). Here is the original GNOME conference video where these slides were used.
  3. Look at a simple hello world program using GDBus here, or for something more detailed, see my example code here. I've got a detailed README explaining the details.

This should help. :)