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
|
no extra maintenance (it already exists internally) and no additional backwards
|
||||||
compatibility hazards.
|
compatibility hazards.
|
||||||
|
|
||||||
|
If no browser is configured and $BROWSER is unset, xdg-open from xdg-utils is
|
||||||
|
used as a fallback.
|
||||||
|
|
||||||
BUILDING
|
BUILDING
|
||||||
========
|
========
|
||||||
::
|
::
|
||||||
|
|
4
config
4
config
|
@ -19,8 +19,8 @@ cursor_blink = system
|
||||||
# "block", "underline" or "ibeam"
|
# "block", "underline" or "ibeam"
|
||||||
cursor_shape = block
|
cursor_shape = block
|
||||||
|
|
||||||
# $BROWSER is used by default
|
# $BROWSER is used by default if set, with xdg-open as a fallback
|
||||||
#browser = chromium
|
#browser = xdg-open
|
||||||
|
|
||||||
# set size hints for the window
|
# set size hints for the window
|
||||||
#size_hints = false
|
#size_hints = false
|
||||||
|
|
|
@ -1333,8 +1333,7 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!info->browser) {
|
if (!info->browser) {
|
||||||
g_warning("Couldn't read BROWSER and there is no browser configured, disabling clickable_url and url hints");
|
info->browser = g_strdup("xdg-open");
|
||||||
info->clickable_url = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->clickable_url) {
|
if (info->clickable_url) {
|
||||||
|
|
Loading…
Reference in New Issue