Skip to content

fix(desktop): disable WebKit DMABUF renderer by default on Linux#646

Merged
nadaverell merged 1 commit intomainfrom
fix/desktop-disable-dmabuf-renderer
May 6, 2026
Merged

fix(desktop): disable WebKit DMABUF renderer by default on Linux#646
nadaverell merged 1 commit intomainfrom
fix/desktop-disable-dmabuf-renderer

Conversation

@nadaverell
Copy link
Copy Markdown
Contributor

Summary

WebKitGTK's DMABUF renderer (the default since 2.42) produces blank/black windows on a number of Wayland setups — KDE KWin, NVIDIA, some Mesa stacks. The user in #465 hit this on Fedora 43 KDE; the standard WEBKIT_DISABLE_DMABUF_RENDERER=1 workaround fixed it.

Upstream WebKit considers this an application-level concern (won't fix in WebKitGTK), and the Tauri / Wails / WebKit2GTK app ecosystem has converged on shipping the workaround by default. The legacy renderer is stable everywhere — no known regressions from disabling DMABUF.

What changed

  • applyWebKitDefaults() sets WEBKIT_DISABLE_DMABUF_RENDERER=1 at startup, only when the variable is unset. Users can opt back in with WEBKIT_DISABLE_DMABUF_RENDERER=0.
  • LookupEnv (not empty-string check) so an explicit =0 is respected.
  • Linux-only via build tags; no-op stub on macOS / Windows (where this WebKitGTK var has no meaning).
  • Wired in main() right after logBootEnv(), before Wails initializes WebKit.

If users still see blank windows after this ships, the next escape hatch is WEBKIT_DISABLE_COMPOSITING_MODE=1 — kept as a manual fallback rather than another default, since it forces a much slower software-rendered path.

Closes #465.

WebKitGTK's DMABUF renderer (default since 2.42) produces blank/black
windows on a range of Wayland setups — KDE KWin, NVIDIA, some Mesa
stacks. Upstream closed the regression as an application-level concern,
so the Tauri/Wails/WebKit2GTK app ecosystem has converged on shipping
the WEBKIT_DISABLE_DMABUF_RENDERER=1 workaround by default. The legacy
renderer is stable everywhere.

Set the env var only when unset (LookupEnv, not empty-string), so users
who explicitly set WEBKIT_DISABLE_DMABUF_RENDERER=0 can opt back in.
Must run before Wails initializes WebKit, so it's wired in early in
main() right after logBootEnv(). Linux-only via build tags; no-op stub
on other platforms.

Closes #465.
@nadaverell nadaverell requested a review from hisco as a code owner May 6, 2026 09:13
@cursor
Copy link
Copy Markdown

cursor Bot commented May 6, 2026

You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace.

To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard.

@nadaverell nadaverell merged commit 0ad5767 into main May 6, 2026
6 checks passed
@nadaverell nadaverell deleted the fix/desktop-disable-dmabuf-renderer branch May 6, 2026 09:14
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.

radar-desktop fails to run on Fedora 43 KDE

1 participant