2006/6/27, Luca Donaggio <<a href="mailto:donaggio@gmail.com">donaggio@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>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:
<br><br>X-Osso-Service=it.opbyte.grsync<br><br>and it worked!<br>Now I still have to understand why it doesn't come up hildonized!</div></blockquote><div><br>Definitely today is not my day! I solved the "not hildonized" issue, I missed a CFLAGS="-DMAEMO2" in debian/rules!
<br><br>However, when launching the application from the menu in Scratchbox this is what I see on the terminal:<br><br>hn-wm.c:264,hn_wm_top_service() Called with 'it.opbyte.grsync'<br>hn-wm.c:302,hn_wm_top_service() ### Failed to read memory limits, using scratchbox ??
<br>hn-wm.c:335,hn_wm_top_service() unable to find service name 'it.opbyte.grsync' in running wins<br>hn-wm.c:336,hn_wm_top_service() Thus launcing via osso_manager_launch()<br>hn-wm.c:1210,hn_wm_dbus_method_call_handler() Checking if service: '
it.opbyte.grsync' is watchable<br> </div>and the application is usable for some seconds (< 1 min.) then it suddenly dies without any error (it doesn't segfaoult, though).<br>I remember something similar used to happen with IT2005 too, and it was related to DBUS not being able to properly register the service.
<br>This is what I do in main.c:<br><br> gtk_init (&argc, &argv);<br><br> [...]<br><br> program = HILDON_PROGRAM(hildon_program_get_instance());<br> osso_context = osso_initialize(PACKAGE, VERSION, FALSE, NULL);
<br> g_assert(osso_context);<br> main_window = HILDON_WINDOW(create_main ());<br> hildon_program_add_window(program, main_window);<br> g_set_application_name(_("Grsync"));<br> gtk_widget_show_all (GTK_WIDGET(main_window));
<br> g_signal_connect(G_OBJECT(main_window), "delete_event",<br> G_CALLBACK(gtk_main_quit), NULL);<br> gtk_main();<br><br>Any clue?<br></div><br>