X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=launcher.c;h=fd339331c00f468eb35809a5f5d40e48ead522db;hp=77f2ded16da9189e3c7d4c276e07bb4b1a29c0b5;hb=ec8b58af1b1cf22f34478faf476047e7ce996245;hpb=acd7680b31f4fee62fe05395dc10f57ae1db03d1 diff --git a/launcher.c b/launcher.c index 77f2ded..fd33933 100644 --- a/launcher.c +++ b/launcher.c @@ -134,7 +134,7 @@ static void launch_tear(struct swb_context *ctx, char *uri) { if (!tear_proxy) { if (!(tear_proxy = dbus_g_proxy_new_for_name( ctx->session_bus, - "com.nokia.tear", + "com.nokia.tear", "/com/nokia/tear", "com.nokia.Tear"))) { log_msg("Failed to create proxy for com.nokia.Tear D-Bus interface\n"); @@ -386,7 +386,7 @@ void launch_microb(struct swb_context *ctx, char *uri) { /* Event found, stop looking */ break; memset(buf, '\0', 256); - } + } inotify_rm_watch(fd, inot_wd); close(fd); @@ -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")) {