From 35c847293217ffd51959a625480d63582e52526b Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Thu, 7 Dec 2017 01:40:26 -0500 Subject: [PATCH] Fixing the command for the opera webbrowser --- rtv/objects.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtv/objects.py b/rtv/objects.py index 68c9160..0fc362b 100644 --- a/rtv/objects.py +++ b/rtv/objects.py @@ -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