Originally created by: kristofferR
On Linux under Wayland, the WebKitGTK (webkit2gtk) webview can render blank, black, or garbled with hardware where the DMABUF renderer is broken — most commonly NVIDIA drivers and some Intel GPUs. The window opens but the Messenger page never paints. This is a long-standing webkit2gtk/Wayland issue, not a Carrier bug, but Carrier ships a Linux build using the same webview and is exposed to it.
Disable the DMABUF renderer on Wayland by setting WEBKIT_DISABLE_DMABUF_RENDERER=1 before any GTK/webkit2gtk initialization (i.e. at the very top of run(), before the Tauri builder). Only set it on Wayland, and don't clobber an explicit user override:
#[cfg(target_os = "linux")]
{
if std::env::var("WAYLAND_DISPLAY").is_ok()
&& std::env::var("WEBKIT_DISABLE_DMABUF_RENDERER").is_err()
{
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
}
}
WAYLAND_DISPLAY present) so X11 sessions are untouched.WEBKIT_DISABLE_DMABUF_RENDERER env var (user can force it on/off).This is the workaround used by the sibling Tauri app IPTVChecker (src-tauri/src/lib.rs), and the standard mitigation recommended across the Tauri / webkit2gtk ecosystem for Wayland + NVIDIA rendering failures.
Ticket changed by: kristofferR
Originally posted by: kristofferR
Fixed by [#38], merged into main as 161d5b1.
Related
Tickets:
#38