]> git.armaanb.net Git - chorizo.git/commitdiff
Change default homepage to about:blank
authorArmaan Bhojwani <me@armaanb.net>
Sun, 6 Jun 2021 14:14:08 +0000 (10:14 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 6 Jun 2021 14:14:08 +0000 (10:14 -0400)
browser.c
man1/lariza-config.5.scd

index 9486b9d4ad0d482f040dfcd909d5a83af39ede2b..d10ccb5ce3d05c5e26f74984b6ad208268c1d8d9 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -650,15 +650,17 @@ get_config(void)
 
        config = get_ini();
        cfg.accepted_language[0] = g_key_file_get_string(config, "browser",
-                                                                                                                                                                                        "accepted_language", NULL);
+                                                                                                                                                                                                        "accepted_language", NULL);
        cfg.history_file = g_key_file_get_string(config, "browser", "history_file",
                                                                                                                                                                         NULL);
        cfg.home_uri = g_key_file_get_string(config, "browser", "homepage", NULL);
+       cfg.home_uri = (cfg.home_uri) ? cfg.home_uri : "about:blank";
        cfg.enable_console_to_stdout = g_key_file_get_boolean(config, "browser",
-                                                                                                                                                                                                               "console_to_stdout", NULL);
+                                                                                                                                                                                                                               "console_to_stdout",
+                                                                                                                                                                                                                               NULL);
        cfg.user_agent = g_key_file_get_string(config, "browser", "user_agent", NULL);
        cfg.javascript_disabled = g_key_file_get_boolean(config, "browser",
-                                                                                                                                                                                        "javascript_disabled", NULL);
+                                                                                                                                                                                                        "javascript_disabled", NULL);
        char *input_cookie_policy = g_key_file_get_string(config, "browser",
                                                                                                                                                                                                                "cookie_policy", NULL);
        cfg.cookie_policy = WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY;
index 0c435ec9c56deb98d8792565d1f8180f602e0dcf..3ab31a70d50a09c73fffc015635bcee5d377bd6a 100644 (file)
@@ -19,7 +19,7 @@ subsection.
 
 *homepage*++
        Type: string++
-       Default: none++
+       Default: "about:blank"++
        Set the default URI for new tabs.
 
 *console_to_stdout*++