Adding surf to the list of default webbrowsers
This commit is contained in:
1 parent
afaa0bf2b3
commit
b828001c66
1 file changed
+4
@@ -33,6 +33,10 @@ def patch_webbrowser():
|
||||
https://bugs.python.org/issue31348
|
||||
"""
|
||||
|
||||
# Add the suckless.org surf browser, which isn't in the python
|
||||
# standard library
|
||||
webbrowser.register('surf', None, webbrowser.BackgroundBrowser('surf'))
|
||||
|
||||
if sys.platform != 'darwin' or 'BROWSER' not in os.environ:
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user