maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Accessing contacts from daemon (in Qt) (https://talk.maemo.org/showthread.php?t=63696)

kif 2010-11-18 21:12

Re: Accessing contacts from daemon (in Qt)
 
I didn't but now I do, and it did tell me something :

GLIB WARNING ** mc-client - Unrecognized presence `online'
GLIB MESSAGE libosso-abook - osso-abook-aggregator.c:2220: EBook error 8 on file:///root/.osso-abook/db
GLIB WARNING ** GLib-GObject - invalid (NULL) pointer instance
GLIB CRITICAL ** GLib-GObject - g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
GLIB CRITICAL ** Gdk - gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
GLIB CRITICAL ** Pango - pango_context_set_font_description: assertion `context != NULL' failed

and so on ....

To me it looks as if glib is missing something in the enviroment, any idea what ?

Kim

nicolai 2010-11-18 21:29

Re: Accessing contacts from daemon (in Qt)
 
Quote:

Originally Posted by kif (Post 877375)
GLIB MESSAGE libosso-abook - osso-abook-aggregator.c:2220: EBook error 8 on file:///root/.osso-abook/db

This line shows, that it still uses root user for accessing the
addressbook.

kif 2010-11-25 22:12

Re: Accessing contacts from daemon (in Qt)
 
Problem solved !

I went back to my earlier idea of running the daemon in 'user space', and changed the start line in my event.d script to :

su -c '/usr/sbin/callloggerd' -l user

Now my daemon starts at startup (after hildon has started) and it can even open the addressbook.

But thanks for the ideas anyway, help is always appreciated!

Kim


All times are GMT. The time now is 22:18.

vBulletin® Version 3.8.8