[maemo-developers] [maemo-developers] dbus launch browser from home applet

From: Kees Jongenburger kees.jongenburger at gmail.com
Date: Thu Aug 3 10:48:29 EEST 2006
Hello

I am trying to launch the osso_browser using dbus from my home applet.
in my hildon_home_applet_lib_initialize I initialize the osso context

  appContext->ctxt =
    osso_initialize(PROGRAM_HAME, PACKAGE_VERSION, FALSE, NULL);

and on a button_release_event I perform

    ret =
      osso_rpc_run_with_defaults(appContext->ctxt, "osso_browser",
                                 OSSO_BROWSER_OPEN_NEW_WINDOW_REQ, NULL,
                                 DBUS_TYPE_STRING,
                                 desktop->bookmarks[desktop->
                                                    current_index]->href,
                                 DBUS_TYPE_INVALID);

The result is that the browser is launched. The problem is that when I
close the browser and get back to the home the application crashes.
what am I doing wrong?

greetings

More information about the maemo-developers mailing list