Merge pull request #488 from michael-lazar/opera

Fixing the command for the opera webbrowser
This commit is contained in:
Michael Lazar
2017-12-07 01:44:36 -05:00
committed by GitHub

View File

@@ -37,6 +37,11 @@ def patch_webbrowser():
# standard library
webbrowser.register('surf', None, webbrowser.BackgroundBrowser('surf'))
# Fix the opera browser, see https://github.com/michael-lazar/rtv/issues/476.
# By default, opera will open a new tab in the current window, which is
# what we want to do anyway.
webbrowser.register('opera', None, webbrowser.BackgroundBrowser('opera'))
if sys.platform != 'darwin' or 'BROWSER' not in os.environ:
return