Add option to force opening links in new browser window
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user