Add option to force opening links in new browser window

This commit is contained in:
Pablo Arias
2019-04-14 19:05:18 +02:00
parent 911e866478
commit 5f8afabc54
3 changed files with 10 additions and 2 deletions

View File

@@ -599,7 +599,10 @@ class Terminal(object):
try:
os.dup2(null, 1)
os.dup2(null, 2)
webbrowser.open_new_tab(url)
if self.config['force_new_browser_window']:
webbrowser.open_new(url)
else:
webbrowser.open_new_tab(url)
finally:
try:
os.close(null)