From 80d05e9e5f842ce3c13c231fcd9a507521233695 Mon Sep 17 00:00:00 2001 From: Ayrris Aunario Date: Fri, 28 Jun 2024 18:54:42 -0500 Subject: [PATCH] SSO Login: fix app hanging when browser proxy/manager fails to launch due to missing requirements (KC-787) --- keepercommander/auth/console_ui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keepercommander/auth/console_ui.py b/keepercommander/auth/console_ui.py index e10bdba2d..1b397019f 100644 --- a/keepercommander/auth/console_ui.py +++ b/keepercommander/auth/console_ui.py @@ -262,6 +262,11 @@ def on_password(self, step): def on_sso_redirect(self, step): try: wb = webbrowser.get() + wrappers = set('xdg-open|gvfs-open|gnome-open|x-www-browser|www-browser'.split('|')) + browsers = set(webbrowser._browsers if hasattr(webbrowser, '_browsers') else {}) + standalones = browsers - wrappers + if browsers and not standalones: # show browser-launch option only if effectively supported + wb = None except: wb = None