<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><span style="font-style: italic;">&gt;</span><i>&nbsp;&nbsp;&nbsp; if (!connection.registerObject("/org/maemo/vicar", this,<br></i><span style="font-style: italic;">&gt;</span><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QDBusConnection::ExportScriptableSlots)) {<br></i><span style="font-style: italic;">&gt;</span><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qDebug() &lt;&lt; dbusUtility.getErrorMessage();<br></i><span style="font-style: italic;">&gt;</span><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(2);<br></i><span style="font-style: italic;">&gt;</span><i>&nbsp;&nbsp;&nbsp; }<br></i><br><span style="font-style: italic;">&gt;</span>1) If I reboot the device, the service does not get activated automatically. I verified this by running the method call&nbsp; <span style="font-style: italic;">&gt;</span>org.freedesktop.DBus.ListNames (on System Bus). But If I run the executable manually, the service is registered successfully to system <span style="font-style: italic;">&gt;</span>bus and I can see the name listed with the method call org.freedesktop.DBus.ListNames. Why is the daemon not launched automatically?<br><span style="font-style: italic;">&gt;</span><br><span style="font-style: italic;">&gt;</span>2) The daemon app connects to a custom signal on launch. <br><span style="font-style: italic;">&gt;</span>&nbsp;&nbsp; <br><span style="font-style: italic;">&gt;</span>&nbsp; QDBusConnection connection = QDBusConnection::systemBus();<br><span style="font-style: italic;">&gt;</span><br><span style="font-style: italic;">&gt;</span>&nbsp; bool success = connection.connect(QString(""),<br><span style="font-style: italic;">&gt;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QString(""),<br><span style="font-style: italic;">&gt;</span>&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><span style="font-style: italic;">&gt;</span>&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><span style="font-style: italic;">&gt;</span>&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><span style="font-style: italic;">&gt;</span><br><span style="font-style: italic;">&gt;</span>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 <span style="font-style: italic;">&gt;</span>far. Could you tell me what is wrong here?<br><span style="font-style: italic;">&gt;</span><br><span style="font-style: italic;">&gt;</span>~ $ dbus-send --system --print-reply --type=signal --dest=org.maemo.vicar org/maemo/vicar org.maemo.vicar.startOutgoingCallMonitor<br><span style="font-style: italic;">&gt;</span>process 1686: arguments to dbus_message_new_signal() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file <span style="font-style: italic;">&gt;</span>dbus-<span style="font-style: italic;">&gt;</span>message.c line 1165.<br><span style="font-style: italic;">&gt;</span>This is normally a bug in some application using the D-Bus library.<br><span style="font-style: italic;">&gt;</span>Couldn't allocate D-Bus message<br><br>I found that the issue #2 was because i missed a stupid / in the path while sending the dbus signal. The path should be '/org/maemo/vicar'. <br><br>I am still not able to launch the deamon app at startup (#1). May be I got the whole Dbus service activation concept wrong. I will worry about that later.<br><br>As of now I am launching my daemon app by adding an upstart script to /etc/event.d directory. It is launching fine now.<br><br>Ram/ianaré
/Mikhail - Thank you very much for taking time to respond to my questions.<br><br>Regards,<br>Sudheer<br>                                               <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3' target='_new'>Get started.</a></body>
</html>