Skip to content

Linux: turn off WebKitGTK's DMA-BUF renderer by default - #23

Merged
Fazmin merged 1 commit into
mainfrom
fix/linux-webkit-dmabuf
Nov 20, 2026
Merged

Fazmin merged 1 commit into
mainfrom
fix/linux-webkit-dmabuf

Conversation

@Fazmin

@Fazmin Fazmin commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Fixes #21.

On Ubuntu 22.04 in a VMware Workstation VM, the desktop app drew black, gray and colored blocks over the window. WebKitGTK's DMA-BUF renderer is known to do this in VMs without 3D acceleration and with some GPU drivers. The reporter confirmed that WEBKIT_DISABLE_DMABUF_RENDERER=1 fixes it, and so does WEBKIT_DISABLE_COMPOSITING_MODE=1. I picked the first because it turns off less.

Change

  • run_gui() sets WEBKIT_DISABLE_DMABUF_RENDERER=1 first thing on Linux, before any thread starts, unless the variable is already set. Setting it to =0 turns the renderer back on.
  • It only affects the desktop window. CLI, MCP and server modes never reach run_gui.
  • The README's install section explains the default, how to undo it, and WEBKIT_DISABLE_COMPOSITING_MODE=1 as the next thing to try.

Checked: cargo fmt --check passes, and cargo check -p cve-intel-desktop passes on macOS, where this code is compiled out. The Linux compile is CI's ubuntu-latest job.

In VMs without 3D acceleration (reported on Ubuntu 22.04 in VMware
Workstation, #21) and with some GPU drivers, the DMA-BUF renderer draws
black, gray and colored blocks over the window. The reporter confirmed
WEBKIT_DISABLE_DMABUF_RENDERER=1 fixes it. Set it at the start of the
GUI path unless the user set it already, so =0 still re-enables it.
CLI, MCP and server modes are untouched.
@Fazmin
Fazmin merged commit 9813692 into main Nov 20, 2026
5 checks passed
@Fazmin
Fazmin deleted the fix/linux-webkit-dmabuf branch November 20, 2026 12:46
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.

[Bug]: Weird overlay shapes in the Linux UI

1 participant