Fixing the command for the opera webbrowser
This commit is contained in:
1 parent
70b635cd9c
commit
35c8472932
1 file changed
+5
@@ -37,6 +37,11 @@ def patch_webbrowser():
|
|||||||
# standard library
|
# standard library
|
||||||
webbrowser.register('surf', None, webbrowser.BackgroundBrowser('surf'))
|
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:
|
if sys.platform != 'darwin' or 'BROWSER' not in os.environ:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user