Repository navigation
Linux: open on sign-in when the keychain can't be read (the blank window) - #168
Merged
Merged
Conversation
Two causes of the blank Linux window (AppImage/appimage.github.io#12979), found under Xvfb on Ubuntu 22.04: without a keyring service, get_token failed and start() never left 'starting', so the app drew nothing; and the keychain commands ran on the main thread, freezing the window for the 25 s D-Bus takes to give up. A token that can't be read now counts as none, and the keychain commands are async (off the main thread). The debug workflow is temporary: it launches this build under Xvfb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GTK waits 25 s for a desktop portal the CI runner can't start before it shows the window, so the screenshot is taken at 40 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 3, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the blank Linux window that kept Yeraz out of the AppImage catalog (AppImage/appimage.github.io#12979) and that v0.8.2's release check caught. #164's renderer setting wasn't the cause.
Causes, found with a temporary workflow on Ubuntu 22.04 under Xvfb that used a window list, gdb, GTK's debug log, and the built page loaded in that system's WebKitGTK:
get_tokenfails.start()didn't catch the failure, so the phase stayed'starting', which draws nothing. The window showed only Vanta's background (#030303), and it stayed that way. Real users on desktops without a keyring got this too.Fix
session.ts: a token that can't be read counts as no token, so the app opens on sign-in.lib.rs:get_token,set_tokenanddelete_tokenareasync, so Tauri runs them off the main thread.release.yml: the Linux screenshot check waits 40 s. GTK itself waits 25 s for a desktop portal the CI runner can't start, before it shows any window. That wait is in GTK, not in Yeraz.Tests
session.test.ts: starts signed out when the keychain cannot be read. It failed before the fix and passes now. Unit tests: 719 passed.desktop.ymlcompiles the Rust on this PR.Claude Code on behalf of @Alessandro-Schmidt