Thread: DBUS Confusion
View Single Post
Posts: 114 | Thanked: 7 times | Joined on Jan 2006
#1
I'm attempting to access EDS services, and running into an obstacle.

When attempting to access, a supposedly synchronous call, to EDS, I'm receiving an error message of:

Message did not receive a reply (timeout by message bus)

Here is the offending code, within a static void section linked to a menu action:
Code:
EBook *mybook = e_book_new_from_uri("/home/adam/books/adambook", &err);
if (mybook == NULL)
{
  hildon_banner_show_information(GTK_WIDGET(app->window), NULL, err->message);
}
I've gone through numerous iterations of changing the service name registered in the code, the .service file, the .desktop file, all to the same result. I've tried "my.own.domain.myservice", as well as the prior required "com.nokia.myservice". I'm afraid I might have missed a particular combination of where to (not) include the domain between the code and descriptors.

I'm hoping some guru can lend a hand or direction. I'm running this under 2.2, scratchbox 1, with a PC target. I've tried running dbus-monitor (i swear i used to be able to use the keyboard from within the xterm app under scratchbox), but I really don't know what I'm looking for. I do see calls to the addressbook and said factories.

I hope I've provided enough information to go on.... Thanks for any help!

For the sake of brevity, all tests to make sure things are initialized aren't pasted in here.. but, they're in the code, and they come back a success.

Initialization code, tried with and without "TRUE":
Code:
appData.context = osso_initialize("myapplication", "1.0", TRUE, NULL);
osso abook init code (tried with and without)
Code:
    if (!osso_abook_init (&argc, &argv, appData.context))

myapplication.desktop:
Code:
Encoding=UTF-8
Version=1.0
Name=AddressApp
Comment=Address Book stuff
Exec=/home/adam/hello-world-gtk/hildpc/src/ihello
Icon=terminal
Terminal=false
Type=Application
Categories=User;Contact
X-HildonDesk-ShowInToolbar=true
X-Osso-Service=com.nokia.myapplication
X-Osso-Type=application/x-executable
myapplication.service
Code:
[D-BUS Service]
Name=com.nokia.myapplication
Exec=/home/adam/hello-world-gtk/hildpc/src/ihello