Adding surf to the list of default webbrowsers

This commit is contained in:
Michael Lazar
2017-12-07 01:03:34 -05:00
parent afaa0bf2b3
commit b828001c66

View File

@@ -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