[maemo-developers] [maemo-developers] Help on how to attach a non gtk+/hildon app to D-Bus

From: Graham Cobb g+770 at cobb.uk.net
Date: Wed Jan 10 23:03:15 EET 2007
On Wednesday 10 January 2007 16:33, Tomas wrote:
> Where can we get an exemple on how to write a little C script to listen
> D-Bus signals?

Search the mailing list archives for any of dbus-monitor, dbus-s or 
dbus-scripts -- all three do what you need (and are variants of the same 
program).  Do not forget you need to monitor the system dbus in order to get 
connectivity signals.

Note that, as the earlier reply pointed out, this code does make use of the 
gtk main loop.

Alternatively, install my dbus-scripts package and use that to call your code 
any way you want when the signals happen.

Graham

More information about the maemo-developers mailing list