fix(linux): launch on NVIDIA + Wayland; config webAppUrl for "call in browser"
NVIDIA + Wayland (reported on CachyOS/KDE, driver 615.71, webkit2gtk 2.52.6): no window. GDK dies with "Error 71 (Protocol error) dispatching to Wayland display"; forced onto XWayland, WebKit's DMA-BUF renderer then fails with "Failed to create GBM buffer … Invalid argument". The reporter's workaround, WEBKIT_DISABLE_DMABUF_RENDERER=1 GDK_BACKEND=x11, runs fine. gpu_workarounds::apply(), first thing in main() (before GTK/WebKit init): when the NVIDIA driver is loaded (/proc/driver/nvidia/version or /sys/module/nvidia), set WEBKIT_DISABLE_DMABUF_RENDERER=1, and on a Wayland session that has XWayland (DISPLAY set) also GDK_BACKEND=x11. Values the user already set win; LOTUS_NO_GPU_WORKAROUNDS=1 turns it all off. Logs what it set to stderr. Non-NVIDIA systems are untouched. Unit tests for the decision. config.json: webAppUrl = https://chat.lotusguild.org, used by the web client (cinny `calls-open-in-browser`) to send calls this WebKitGTK build can't make to the web app in the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
This commit is contained in:
1 parent
a4dd23dc4a
commit
df760abdc7
4 files changed
+144
-5
No files matched your search
@@ -1,5 +1,7 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
// Before anything initialises GTK/WebKit (NVIDIA + Wayland workarounds).
|
||||
app_lib::gpu_workarounds::apply();
|
||||
app_lib::run();
|
||||
}
|
||||
Reference in new issue
Block a user