View Single Post
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#4
Originally Posted by Kasperl View Post
Where would I find the correct dbus hook? I couldn't find anything in the docs about which one to listen for. Setting up a daemon and such would be in more general Linux docs, probably. I could find that out once I know what to listen for...
I partially use the docs, as they are very partial.

You can find more about DBUS in general here:
http://wiki.maemo.org/Documentation/...us/DBus_Basics

regarding finding the dbus to use, here is what I do:
First, I use "dbus-monitor --session" or "dbus-monitor --system", depends on what channel you need (I believe SMS is session).
I pipeline it to a file (so it will be more convenient) and reproduce the state I'd like to catch it's dbus channel (for incoming SMS, for example, I send myself an SMS from Skype or gmail).
Then the pipelined file contains ALL dbus method and signal calls.
Method call are for invokation (do something), and signals are to listen to something.
The output contains all the necessary information about the dbus (name, path, interface and type).

Hopes this helps.

Last edited by omeriko9; 2010-03-28 at 12:49.
 

The Following 2 Users Say Thank You to omeriko9 For This Useful Post: