From 81d2b2485ca2a490af7f4bb5d4e2995c35c12915 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Thu, 13 May 2010 02:19:23 -0700 Subject: [PATCH] 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. --- config-ui/browser-switchboard-cp.c | 1 + launcher.c | 2 ++ 2 files changed, 3 insertions(+) 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")) { -- 1.7.9.5