[maemo-developers] [maemo-developers] Developing for IT2006
From: Jari Tenhunen jari.tenhunen at iki.fiDate: Tue Jun 27 15:50:18 EEST 2006
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] Developing for IT2006
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 27, 2006 at 01:33:17PM +0200, Luca Donaggio wrote: > 2006/6/27, Luca Donaggio <donaggio at gmail.com>: > > > >I created a .deb for i386 and installed it in Scratchbox with dpkg -i. > >Result is that DBUS was looking for "com.nokia.grsync" service, while in > >grsync.service service's name is defined as "it.opbyte.grsync"; I changed > >my .desktop accordingly: > > > >X-Osso-Service=it.opbyte.grsync > > > >and it worked! > >Now I still have to understand why it doesn't come up hildonized! > > > > Definitely today is not my day! I solved the "not hildonized" issue, I > missed a CFLAGS="-DMAEMO2" in debian/rules! > > However, when launching the application from the menu in Scratchbox this is > what I see on the terminal: > > hn-wm.c:264,hn_wm_top_service() Called with 'it.opbyte.grsync' > hn-wm.c:302,hn_wm_top_service() ### Failed to read memory limits, using > scratchbox ?? > hn-wm.c:335,hn_wm_top_service() unable to find service name ' > it.opbyte.grsync' in running wins > hn-wm.c:336,hn_wm_top_service() Thus launcing via osso_manager_launch() > hn-wm.c:1210,hn_wm_dbus_method_call_handler() Checking if service: ' > it.opbyte.grsync' is watchable > > and the application is usable for some seconds (< 1 min.) then it suddenly > dies without any error (it doesn't segfaoult, though). > I remember something similar used to happen with IT2005 too, and it was > related to DBUS not being able to properly register the service. > This is what I do in main.c: > > gtk_init (&argc, &argv); > > [...] > > program = HILDON_PROGRAM(hildon_program_get_instance()); > osso_context = osso_initialize(PACKAGE, VERSION, FALSE, NULL); Hi! What exactly is PACKAGE here? If you use other prefix than com.nokia, you need to supply the full service name (in your case it.opbyte.grsync) as the first parameter for osso_initialize(). There have been some attempts to fix the com.nokia issue in OS 2006 edition so things should (mostly) work also with non-com.nokia service names, provided that you use the same full org.domain.foobar name everywhere (desktop, service, osso_initialize() etc). Br, Jari -- Jari Tenhunen, stardate [-29]5981.12 :wq
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] Developing for IT2006
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]