From ef66c102d916ea842c8ba15f010bf04326e3a590 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Fri, 19 Feb 2010 17:19:29 -0800 Subject: [PATCH 1/1] Force the Fremantle Ovi Store bookmark to open in MicroB The Ovi Store apparently only comes up if you visit with MicroB, so force the link in the Ovi Store bookmark to open in MicroB. Reported by maemo.org talk user ToJa92; additional details provided by Faheem Pervez (qwerty12). --- dbus-server-bindings.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dbus-server-bindings.c b/dbus-server-bindings.c index 3875929..8224def 100644 --- a/dbus-server-bindings.c +++ b/dbus-server-bindings.c @@ -81,6 +81,15 @@ static void open_address(const char *uri) { we need to clean up after ourselves */ free(new_uri); } else { +#ifdef FREMANTLE + if (!strcmp(uri, "http://link.ovi.mobi/n900ovistore")) { + /* Ovi Store webpage will not open correctly in + any browser other than MicroB, so force the + link in the provided bookmark to open in MicroB */ + launch_microb(&ctx, (char *)uri); + return; + } +#endif launch_browser(&ctx, (char *)uri); } } -- 1.7.9.5