> if (!connection.registerObject("/org/maemo/vicar", this,
> QDBusConnection::ExportScriptableSlots)) {
> qDebug() << dbusUtility.getErrorMessage();
> exit(2);
> }
>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?
>
>2) The daemon app connects to a custom signal on launch.
>
> QDBusConnection connection = QDBusConnection::systemBus();
>
> bool success = connection.connect(QString(""),
> QString(""),
> QString("org.maemo.vicar"),
> QString("startOutgoingCallMonitor"),this,
> SLOT(startOutgoingCallMonitor()));
>
>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?
>
>~ $ dbus-send --system --print-reply --type=signal --dest=org.maemo.vicar
>org/maemo/vicar org.maemo.vicar.startOutgoingCallMonitor
>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.
>This is normally a bug in some application using the D-Bus library.
>Couldn't allocate D-Bus message
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'.
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.
As of now I am launching my daemon app by adding an upstart script to
/etc/event.d directory. It is launching fine now.
Ram/ianaré
/Mikhail - Thank you very much for taking time to respond to my questions.
Regards,
Sudheer
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers