From 4f98e182e3e0b63212c61d710b3285e6129964ca Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Wed, 29 Jul 2026 20:44:16 +0200 Subject: [PATCH] fix(cef): add GPU diagnostic override --- src-tauri/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 82200209c..034c508ca 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -74,6 +74,13 @@ fn main() { if let Ok(port) = std::env::var("SABLE_DEVTOOLS") { args.push(("--remote-debugging-port".into(), Some(port))); } + + // Diagnostic escape hatch for GPU/display-resume crashes. Keep + // acceleration enabled by default; this is for affected users to + // A/B test without rebuilding the application. + if std::env::var_os("SABLE_DISABLE_GPU").is_some() { + args.push(("--disable-gpu".into(), None)); + } args }, ..Default::default()