<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
>> Twas brillig at 10:05:38 07.05.2010 UTC-07 when scifi.guy@hotmail.com<br>>> did gyre and gimble:<br>>> <br>>> SG> Could you please elaborate what you mean by "upon first access"?<br>>> <br>>> There is elaborate documentation.<br>>> <br>>> http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-starting-services<br>>> <br>>> -- <br>>> http://fossarchy.blogspot.com/<br><br>>Thank you :) <br>><br>>I will create the service for the daemon and post back the results. Probably tonight (at work now). <br>><br>>Thank you all for taking time to read and respond to my post.<br>><br>>~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> if (!connection.registerService("org.maemo.vicar")) {<br> qDebug() << dbusUtility.getErrorMessage();<br> exit(1);<br> }<br><br> if (!connection.registerObject("/org/maemo/vicar", this,<br> QDBusConnection::ExportScriptableSlots)) {<br> qDebug() << dbusUtility.getErrorMessage();<br> exit(2);<br> }<br></i><br>1) If I reboot the device, the service does not get activated automatically. I verified this by running the method call 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> <br> QDBusConnection connection = QDBusConnection::systemBus();<br><br> bool success = connection.connect(QString(""),<br> QString(""),<br> QString("org.maemo.vicar"),<br> QString("startOutgoingCallMonitor"),this,<br> 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>