From f8de3369c3183367e4edb79db3d4a96af84eb1ba Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 25 Nov 2025 20:57:24 -0600 Subject: [PATCH] fix: No sandbox flag issue --- electron/main.cjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/electron/main.cjs b/electron/main.cjs index 97ced567..18bbfe2e 100644 --- a/electron/main.cjs +++ b/electron/main.cjs @@ -11,13 +11,12 @@ const fs = require("fs"); const os = require("os"); if (process.platform === "linux") { - app.commandLine.appendSwitch("--no-sandbox"); - app.commandLine.appendSwitch("--disable-setuid-sandbox"); app.commandLine.appendSwitch("--disable-dev-shm-usage"); - app.disableHardwareAcceleration(); - app.commandLine.appendSwitch("--disable-gpu"); - app.commandLine.appendSwitch("--disable-gpu-compositing"); + app.commandLine.appendSwitch("--use-gl=angle"); + app.commandLine.appendSwitch("--use-angle=swiftshader"); + + app.commandLine.appendSwitch("--in-process-gpu"); } app.commandLine.appendSwitch("--ignore-certificate-errors");