[maemo-developers] [maemo-developers] Developing for IT2006
From: Luca Donaggio donaggio at gmail.comDate: Tue Jun 27 14:33:17 EEST 2006
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] Developing for IT2006
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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); g_assert(osso_context); main_window = HILDON_WINDOW(create_main ()); hildon_program_add_window(program, main_window); g_set_application_name(_("Grsync")); gtk_widget_show_all (GTK_WIDGET(main_window)); g_signal_connect(G_OBJECT(main_window), "delete_event", G_CALLBACK(gtk_main_quit), NULL); gtk_main(); Any clue? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060627/2a5d4f24/attachment.htm
- Previous message: [maemo-developers] Developing for IT2006
- Next message: [maemo-developers] Developing for IT2006
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]