fix: Sandbox error with Linux

This commit is contained in:
LukeGus
2025-11-26 19:44:19 -06:00
parent e405f8a6fa
commit dfb9e7afe7
4 changed files with 19 additions and 8 deletions

View File

@@ -11,12 +11,11 @@ const fs = require("fs");
const os = require("os");
if (process.platform === "linux") {
app.commandLine.appendSwitch("--disable-dev-shm-usage");
// Enable Ozone platform auto-detection for Wayland/X11 support
app.commandLine.appendSwitch("--ozone-platform-hint=auto");
app.commandLine.appendSwitch("--use-gl=angle");
app.commandLine.appendSwitch("--use-angle=swiftshader");
app.commandLine.appendSwitch("--in-process-gpu");
// Enable hardware video decoding if available
app.commandLine.appendSwitch("--enable-features=VaapiVideoDecoder");
}
app.commandLine.appendSwitch("--ignore-certificate-errors");