use xdg-open as the default fallback browser

This commit is contained in:
Daniel Micay 2015-06-26 10:03:36 -04:00
parent 0652af0220
commit eb1628c867
3 changed files with 6 additions and 4 deletions

View File

@ -20,6 +20,9 @@ to expose functionality that's not required by GNOME Terminal even if there's
no extra maintenance (it already exists internally) and no additional backwards
compatibility hazards.
If no browser is configured and $BROWSER is unset, xdg-open from xdg-utils is
used as a fallback.
BUILDING
========
::

4
config
View File

@ -19,8 +19,8 @@ cursor_blink = system
# "block", "underline" or "ibeam"
cursor_shape = block
# $BROWSER is used by default
#browser = chromium
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# set size hints for the window
#size_hints = false

View File

@ -1333,8 +1333,7 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info,
}
if (!info->browser) {
g_warning("Couldn't read BROWSER and there is no browser configured, disabling clickable_url and url hints");
info->clickable_url = false;
info->browser = g_strdup("xdg-open");
}
if (info->clickable_url) {