mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-29 09:35:50 +00:00
Bugfix: open_graphical_browser opens CLI browsers
This commit is contained in:
parent
bb4e7b2c0e
commit
c0f773214f
2 changed files with 8 additions and 2 deletions
|
|
@ -9,6 +9,12 @@ Package maintainers and users who have to manually update their installation
|
|||
may want to subscribe to `GitHub's tag feed
|
||||
<https://github.com/untitaker/vdirsyncer/tags.atom>`_.
|
||||
|
||||
Version 0.7.5
|
||||
=============
|
||||
|
||||
- Fixed a bug in :storage:`remotestorage` that would try to open a CLI browser
|
||||
for OAuth.
|
||||
|
||||
Version 0.7.4
|
||||
=============
|
||||
|
||||
|
|
|
|||
|
|
@ -209,10 +209,10 @@ def open_graphical_browser(url, new=0, autoraise=True):
|
|||
'w3m'])
|
||||
|
||||
for name in webbrowser._tryorder:
|
||||
browser = webbrowser.get(name)
|
||||
if browser in cli_names:
|
||||
if name in cli_names:
|
||||
continue
|
||||
|
||||
browser = webbrowser.get(name)
|
||||
if browser.open(url, new, autoraise):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue