fix: No sandbox flag issue
This commit is contained in:
@@ -11,13 +11,12 @@ const fs = require("fs");
|
|||||||
const os = require("os");
|
const os = require("os");
|
||||||
|
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
app.commandLine.appendSwitch("--no-sandbox");
|
|
||||||
app.commandLine.appendSwitch("--disable-setuid-sandbox");
|
|
||||||
app.commandLine.appendSwitch("--disable-dev-shm-usage");
|
app.commandLine.appendSwitch("--disable-dev-shm-usage");
|
||||||
|
|
||||||
app.disableHardwareAcceleration();
|
app.commandLine.appendSwitch("--use-gl=angle");
|
||||||
app.commandLine.appendSwitch("--disable-gpu");
|
app.commandLine.appendSwitch("--use-angle=swiftshader");
|
||||||
app.commandLine.appendSwitch("--disable-gpu-compositing");
|
|
||||||
|
app.commandLine.appendSwitch("--in-process-gpu");
|
||||||
}
|
}
|
||||||
|
|
||||||
app.commandLine.appendSwitch("--ignore-certificate-errors");
|
app.commandLine.appendSwitch("--ignore-certificate-errors");
|
||||||
|
|||||||
Reference in New Issue
Block a user