Skip to content

Conversation

@ctrlaltf24
Copy link
Contributor

Makes the user experience of browser login better by detecting likely failures and recommend solutions. Some problems still linger getting the browser to launch, then getting Logos to get the signal back.

#400
#435
#438

Not sure why this didn't pop up earlier in testing, but for some reason it appeared on my machine so added an additional check to make sure the appimage downloads
Detect when the user hasn't logged in after a set period and suggest some workarounds while we're having issues.

Tested:
- Ran uninstall then install

- On a signed in Logos install (but before resource download) confirmed that the dialog wouldn't appear

- On a clean install on the CLI waited 5 minutes, prompt to troubleshoot appeared in terminal

- On a clean install on the GUI hit "Run Logos" then waited 2 minutes and observed the trouble signing in dialog

- On a clean install on the TUI hit "Run Logos" then waited 2 minutes and observed the trouble signing in dialog.
- After returning to main menu, confirmed that the dialog didn't show up again for that run
Applies something similar to what was recommended in FaithLife-Community#438 (though this doesn't solve that issue)

Tested:
- built binary
- ran install from binary
- ran logos from binary
- accomplished sign on
- checked desktop in ~/.local/share/applications to ensure it looked right
- simulated failure in edited script, echo displays properly.
@ctrlaltf24 ctrlaltf24 requested review from n8marti and thw26 October 14, 2025 01:45
logos_appdata_dir = self.app.conf._logos_appdata_dir
if logos_appdata_dir is None:
logging.warning("The user should have installed the Logos application by now and have this populated."
" Waiting until that is resolved...")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change "..." to "…"

if get_logos_user_id(logos_appdata_dir) is not None:
is_user_logged_in = True

sent_trouble_singing_in_message: bool = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct var name "sent_trouble_singing_in_message" to "sent_trouble_signing_in_message"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants