static gint downloads_indicated = 0;
static Window embed = 0;
static gchar *fifo_suffix = "main";
-static gchar *first_uri = NULL;
+static gchar *first_uri = "about:blank";
static gdouble global_zoom = 1.0;
static GHashTable *keywords = NULL;
static gboolean language_is_set = FALSE;
void
usage(void)
{
- fprintf(stderr, "Usage: "__NAME__" [OPTION]... <URI>...\n");
+ fprintf(stderr, "Usage: "__NAME__" [OPTION]... [URI]...\n");
exit(EXIT_FAILURE);
}
}
}
- if (optind >= argc)
- usage();
-
adblock_load();
keywords_load();
cooperation_setup();
if (tabbed_automagic && !(cooperative_instances && !cooperative_alone))
embed = tabbed_launch();
- first_uri = g_strdup(argv[optind]);
- for (i = optind; i < argc; i++)
- client_new(argv[i]);
+ if (optind >= argc)
+ client_new(first_uri);
+ else
+ {
+ first_uri = g_strdup(argv[optind]);
+ for (i = optind; i < argc; i++)
+ client_new(argv[i]);
+ }
+
if (!cooperative_instances || cooperative_alone)
gtk_main();
exit(EXIT_SUCCESS);