Skip to content

Linux: open on sign-in when the keychain can't be read (the blank window) - #168

Merged
Alessandro-Schmidt merged 2 commits into
developfrom
fix/linux-keyring
Dec 3, 2026
Merged

Alessandro-Schmidt merged 2 commits into
developfrom
fix/linux-keyring

Conversation

@Alessandro-Schmidt

Copy link
Copy Markdown
Owner

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.

Before: the release build on Ubuntu 22.04, 30 s after launch After: 40 s after launch

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:

  1. The keychain couldn't be read, and startup never finished. On Linux without a keyring service, get_token fails. 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.
  2. The keychain commands froze the window. They were plain Tauri commands, which run on the main thread. While D-Bus took 25 s to give up, the window couldn't draw.

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_token and delete_token are async, 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.
  • The release build was launched on Ubuntu 22.04 under Xvfb, with and without a session D-Bus, and both showed the screen above (the temporary workflow is removed in the last commit). desktop.yml compiles the Rust on this PR.

Claude Code on behalf of @Alessandro-Schmidt

Alessandro-Schmidt and others added 2 commits December 3, 2026 09:12
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>
@Alessandro-Schmidt
Alessandro-Schmidt merged commit 0884400 into develop Dec 3, 2026
6 checks passed
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.

1 participant