use xdg-open as the default fallback browser
This commit is contained in:
parent
0652af0220
commit
eb1628c867
|
@ -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
4
config
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue