Enable native GPUI windows on Linux

DE
1d ago
+238-7

Summary

Intent: Launching the native preview on Linux leaves a background process without a window because neither GPUI display backend is enabled. Enable X11 and Wayland for Linux so the preview opens native windows, retaining existing platform features elsewhere. ANLG-320.

Demo

Recorded native X11 walkthrough.

An initially empty disposable profile now opens onboarding and reaches the main window without credentials.

Native Linux main window

Verification

Ubuntu 24.04 userspace, Linux x86_64, pinned Rust 1.98.1; commands run from apps/desktop-gpui:

  • cargo fmt --check
  • cargo test --locked --workspace (514 passed; three ignored benchmarks)
  • cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings
  • cargo build --locked
  • dprint, repository license-boundary checks and 97 repository Node tests pass.
  • Accessibility harness draws while draining replies so queries started by nested views finish before assertions.
  • Recorded X11 walkthrough with #8223 and #8224; combined build passes all four Linux gates (517 tests).

The optional screens harness rendered partial output then hit an unsupported GPUI operation. Wayland runtime and physical GPU/HiDPI hardware remain untested. No shipping-app or shared-crate changes.

Open in Devin Desktop: https://app.devin.ai/desktop/session/9d8a027024b4432ca4bb8eca13f1867e?variant=devin
Requested by: @ComputelessComputer


Summary by cubic

Enables native GPUI windows on the Linux desktop preview by adding gpui_platform with x11 and wayland features to the Linux target dependencies. Previously launching the preview on Linux spawned a background process without a window; now it opens native windows under X11 or Wayland. This change affects only the Linux desktop app; other platforms are unchanged.

Also fixes the a11y test harness to render views before and while draining dispatcher replies, so asynchronous queries started by nested views during rendering are settled.