clickable_url should be false whenever browser isn't set

This commit is contained in:
Simon Gomizelj 2013-11-23 20:20:41 -05:00
parent bdec3ffc22
commit f493b4c83e
1 changed files with 5 additions and 1 deletions

View File

@ -1187,13 +1187,17 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info,
}
g_free(info->browser);
info->browser = nullptr;
if (auto s = get_config_string(config, "options", "browser")) {
info->browser = *s;
} else {
info->browser = g_strdup(g_getenv("BROWSER"));
if (!info->browser) info->clickable_url = false;
}
if (!info->browser)
info->clickable_url = false;
if (auto s = get_config_string(config, "options", "font")) {
vte_terminal_set_font_from_string(vte, *s);
g_free(*s);