From: Steven Luo Date: Thu, 13 May 2010 09:19:23 +0000 (-0700) Subject: Add preliminary support for Opera Mobile X-Git-Tag: fremantle-package-3.2-2fremantle1~3 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=b764462df7b86ec2189f282269ed11763c365c27 Add preliminary support for Opera Mobile We do this the lazy way, using use_other_browser_cmd("opera %s"). The Opera Labs post announcing Opera Mobile for Maemo (http://labs.opera.com/news/2010/05/11/) says that "an extra empty tab will get opened every time you open a link from an external application", so I suspect we may need a different method of opening links in an already open browser. --- diff --git a/config-ui/browser-switchboard-cp.c b/config-ui/browser-switchboard-cp.c index c34778b..1b16242 100644 --- a/config-ui/browser-switchboard-cp.c +++ b/config-ui/browser-switchboard-cp.c @@ -67,6 +67,7 @@ struct browser_entry browsers[] = { { "microb", "MicroB" }, /* First entry is the default! */ { "tear", "Tear" }, { "fennec", "Mobile Firefox (Fennec)" }, + { "opera", "Opera Mobile" }, { "midori", "Midori" }, { "other", "Other" }, { NULL, NULL }, diff --git a/launcher.c b/launcher.c index 77f2ded..51e8000 100644 --- a/launcher.c +++ b/launcher.c @@ -632,6 +632,8 @@ void update_default_browser(struct swb_context *ctx, char *default_browser) { /* Cheat and reuse launch_other_browser, since we don't appear to need to do anything special */ use_other_browser_cmd(ctx, "fennec %s"); + else if (!strcmp(default_browser, "opera")) + use_other_browser_cmd(ctx, "opera %s"); else if (!strcmp(default_browser, "midori")) use_other_browser_cmd(ctx, "midori %s"); else if (!strcmp(default_browser, "other")) {