fix: Sandbox error with Linux
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user