Skip to content

fix(linux): avoid AppImage Wayland graphics crash - #128

Merged
mattenarle10 merged 1 commit into
mainfrom
fix/linux-wayland-appimage
Jul 28, 2026
Merged

fix(linux): avoid AppImage Wayland graphics crash#128
mattenarle10 merged 1 commit into
mainfrom
fix/linux-wayland-appimage

Conversation

@mattenarle10

@mattenarle10 mattenarle10 commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Addresses #107.

The AppImage GTK hook can export GDK_BACKEND=x11 even when launched from a Wayland session. That packaging default can trigger WebKitGTK EGL_BAD_PARAMETER before the window is created.

Changes:

  • detect Wayland from XDG_SESSION_TYPE or WAYLAND_DISPLAY
  • keep the existing WebKit DMA-BUF fallback
  • replace only the AppImage-forced x11 backend with wayland,x11
  • preserve other user backend choices
  • add Rust regression tests for detection and override decisions

Validation:

  • cargo fmt --check
  • cargo test --manifest-path src-tauri/Cargo.toml --lib
  • cargo check --manifest-path src-tauri/Cargo.toml --release --locked
  • bun test
  • bun run build
  • git diff --check

A Linux AppImage smoke test on Manjaro Wayland is still required before closing the issue or releasing.

@mattenarle10
mattenarle10 merged commit 8722c07 into main Jul 28, 2026
2 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