[maemo-developers] OSSO Mime callback issue

From: Aniello Del Sorbo anidel at gmail.com
Date: Tue Apr 8 19:15:18 EEST 2008
Hi,

I am having an issue with MIME handling in my port of Xournal.

In the main function I am doing:

  osso_return_t osso_ret;

  osso_context_t *ctx = osso_initialize ("org.anidel.xournal", "0.4.2.1",
TRUE, NULL);
  /* register callback function for mime handling */
  osso_ret = osso_mime_set_cb (ctx, osso_mime_callback, NULL);
  if (osso_ret != OSSO_OK) {
          fprintf (stderr, "Failed to set mime callback function\n");

          return -1;
  }

and the callback function does what it needs to and then returns.
If I run Xournal from the menu and then double-tap a .xoj file in the File
Manager, it correctly
opens that file.
But if Xournal is not open, and I double-tap on the .xoj file, it does
correctly open Xournal, does call the callback function (I know that) but
then Xournal quits as soon as the callback function finishes its things.

What am I missing ?

Thanks!
-- 
anidel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080408/9bc043ad/attachment.htm 
More information about the maemo-developers mailing list