<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&gt;&gt; Twas brillig at 10:05:38 07.05.2010 UTC-07 when scifi.guy@hotmail.com<br>&gt;&gt; did gyre and gimble:<br>&gt;&gt; <br>&gt;&gt;  SG&gt; Could you please elaborate what you mean by "upon first access"?<br>&gt;&gt; <br>&gt;&gt; There is elaborate documentation.<br>&gt;&gt; <br>&gt;&gt; http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-starting-services<br>&gt;&gt; <br>&gt;&gt; -- <br>&gt;&gt;   http://fossarchy.blogspot.com/<br><br>&gt;Thank you :) <br>&gt;<br>&gt;I will create the service for the daemon and post back the results. Probably tonight (at work now). <br>&gt;<br>&gt;Thank you all for taking time to read and respond to my post.<br>&gt;<br>&gt;~Sudheer<br>                                               <br>I am back with my questions again. Not sure If I need to start a new thread but let me ask anyway.<br><br>I have split my functionality into two apps, one running as a daemon and another as a GUI app. Now, I am trying send dbus signals to daemon. Till now I am not successful. Could you guys tell me what am I doing wrong here?<br><br>Here is my  <i>/usr/share/dbus-1/services/org.maemo.vicar.service file content<br><br># Service description file<br>[D-BUS Service]<br>Name=org.maemo.vicar<br>Exec=/home/user/vicar-daemon<br><br># Code from the cpp file<br>&nbsp;&nbsp;&nbsp; if (!connection.registerService("org.maemo.vicar")) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qDebug() &lt;&lt; dbusUtility.getErrorMessage();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(1);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (!connection.registerObject("/org/maemo/vicar", this,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QDBusConnection::ExportScriptableSlots)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qDebug() &lt;&lt; dbusUtility.getErrorMessage();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(2);<br>&nbsp;&nbsp;&nbsp; }<br></i><br>1) If I reboot the device, the service does not get activated automatically. I verified this by running the method call&nbsp; org.freedesktop.DBus.ListNames (on System Bus). But If I run the executable manually, the service is registered successfully to system bus and I can see the name listed with the method call org.freedesktop.DBus.ListNames. Why is the daemon not launched automatically?<br><br>2) The daemon app connects to a custom signal on launch. <br>&nbsp;&nbsp; <br>&nbsp; QDBusConnection connection = QDBusConnection::systemBus();<br><br>&nbsp;&nbsp;&nbsp; bool success = connection.connect(QString(""),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QString(""),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QString("org.maemo.vicar"),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QString("startOutgoingCallMonitor"),this,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SLOT(startOutgoingCallMonitor()));<br><br>I am receiving the boolean value as successful. With the app running, I tried to send the Dbus signal from terminal. I am not successful so far. Could you tell me what is wrong here?<br><br>~ $ dbus-send --system --print-reply --type=signal --dest=org.maemo.vicar org/maemo/vicar org.maemo.vicar.startOutgoingCallMonitor<br>process 1686: arguments to dbus_message_new_signal() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 1165.<br>This is normally a bug in some application using the D-Bus library.<br>Couldn't allocate D-Bus message<br><br><a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3"></a>                                               <br /><hr />The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' target='_new'>Get busy.</a></body>
</html>