diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92043282..750c5568 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,12 +39,25 @@ Be kind and respectful to the members of the community. Take time to educate oth **Linux** — install system dependencies: +***Ubuntu/Debian based*** + ```bash sudo apt-get install -y \ libwebkit2gtk-4.1-dev libssl-dev \ libayatana-appindicator3-dev librsvg2-dev \ patchelf libasound2-dev ``` +***Fedora/Redhat based*** + +```bash +sudo dnf install -y \ + webkit2gtk4.1-devel \ + openssl-devel \ + libayatana-appindicator-gtk3-devel \ + librsvg2-devel \ + patchelf \ + alsa-lib-devel +``` **macOS / Windows** — no extra system dependencies required. diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 01cc5991..90ea6177 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -2,5 +2,14 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { + // WebKitGTK's DMABUF renderer crashes on Wayland with NVIDIA drivers + // ("Error 71 (Protocol error) dispatching to Wayland display"). + // Must run before GTK/WebKit init and before any threads are spawned. + // An explicit user value is respected (e.g. =0 to re-enable DMABUF). + #[cfg(target_os = "linux")] + if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() { + std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); + } + pomotroid_lib::run() }