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()