From 9c4bc8db572d93098ccc741c7968d6b72d9d7487 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 6 Jun 2021 10:14:08 -0400 Subject: [PATCH] Change default homepage to about:blank --- browser.c | 8 +++++--- man1/lariza-config.5.scd | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/browser.c b/browser.c index 9486b9d..d10ccb5 100644 --- 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; diff --git a/man1/lariza-config.5.scd b/man1/lariza-config.5.scd index 0c435ec..3ab31a7 100644 --- a/man1/lariza-config.5.scd +++ b/man1/lariza-config.5.scd @@ -19,7 +19,7 @@ subsection. *homepage*++ Type: string++ - Default: none++ + Default: "about:blank"++ Set the default URI for new tabs. *console_to_stdout*++ -- 2.39.2