if (kill_browserd)
system("kill `pidof browserd`");
- if (!ctx || !ctx->continuous_mode)
+ if (!ctx || !ctx->continuous_mode)
exit(0);
dbus_request_osso_browser_name(ctx);
/* Parent process or error in fork() */
if (urilen > 0)
free(quoted_uri);
- free(command);
+ free(command);
return;
}
/* Child process */
if (!strcmp(default_browser, browser->name)) {
/* Make sure the user's choice is installed on the
system */
- if (browser->binary && !access(browser->binary, X_OK)) {
- use_launcher_as_default(ctx, browser);
- return;
- } else
+ if (browser->binary && access(browser->binary, X_OK)) {
log_msg("%s appears not to be installed\n",
default_browser);
+ } else {
+ use_launcher_as_default(ctx, browser);
+ return;
+ }
}
/* Deal with default_browser = "other" */