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
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?
_______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
