Skip to content

Comments

fix: set DMABUF renderer fallback for Wayland + NVIDIA#391

Merged
Dimillian merged 1 commit intomainfrom
codex/github-mention-gbm-egl-display-creation-fails-on-wayland-+
Feb 10, 2026
Merged

fix: set DMABUF renderer fallback for Wayland + NVIDIA#391
Dimillian merged 1 commit intomainfrom
codex/github-mention-gbm-egl-display-creation-fails-on-wayland-+

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Provide a built-in fallback to disable WebKit's DMABUF renderer on Wayland when an NVIDIA kernel driver is detected to avoid GBM/EGL initialization failures and crashes.

Description

  • Add a detection in src-tauri/src/lib.rs that checks for a Wayland session via XDG_SESSION_TYPE or WAYLAND_DISPLAY and for NVIDIA via /proc/driver/nvidia/version, and sets WEBKIT_DISABLE_DMABUF_RENDERER=1 when appropriate and the variable is not already set.

Testing

  • Ran npm run lint which completed successfully.
  • Ran npm run typecheck (tsc --noEmit) which completed successfully.
  • Ran cargo check in src-tauri which failed due to missing system glib-2.0 development package (glib-2.0.pc not found) in the environment.

Codex Task

@Dimillian
Copy link
Owner Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian changed the title Set DMABUF renderer fallback for Wayland + NVIDIA fix: set DMABUF renderer fallback for Wayland + NVIDIA Feb 10, 2026
@Dimillian Dimillian merged commit a0a03e3 into main Feb 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant