From: Steven Luo Date: Thu, 13 May 2010 09:19:23 +0000 (-0700) Subject: Add preliminary support for Opera Mobile X-Git-Tag: v3.3b1~17 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=ebfd6218aa25d59ce3fcc2330ca62a77c6c754f8;hp=d95701298e18e8cb9e57f346c96a03168bbab458;ds=sidebyside 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 e3865c7..fd33933 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")) {