From: Christian Dywan Date: Mon, 4 Apr 2011 20:47:22 +0000 (+0200) Subject: Move config folder validity check in front of app run X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2092cc64be2fd8fd5312f86711ef303510c25a1;p=midori Move config folder validity check in front of app run --- diff --git a/midori/main.c b/midori/main.c index 645e03e0..2f81158a 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1905,6 +1905,13 @@ main (int argc, /* libSoup uses threads, so we need to initialize threads. */ if (!g_thread_supported ()) g_thread_init (NULL); sokoke_register_stock_items (); + + if (config && !g_path_is_absolute (config)) + { + g_critical (_("The specified configuration folder is invalid.")); + return 1; + } + if (webapp && config) g_set_application_name (_("Midori (Private Browsing)")); else @@ -2084,11 +2091,6 @@ main (int argc, if (run) return midori_run_script (uris ? *uris : NULL); - if (config && !g_path_is_absolute (config)) - { - g_critical (_("The specified configuration folder is invalid.")); - return 1; - } sokoke_set_config_dir (config); if (config) {