禁用gpu沙盒

This commit is contained in:
lyswhut
2022-11-04 16:41:43 +08:00
parent 9bec54c454
commit 12336148d9
5 changed files with 26 additions and 18 deletions
+2
View File
@@ -62,6 +62,8 @@ export const applyElectronEnvParams = () => {
// https://github.com/electron/electron/issues/22691
app.commandLine.appendSwitch('wm-window-animations-disabled')
app.commandLine.appendSwitch('--disable-gpu-sandbox')
// proxy
if (global.envParams.cmdParams['proxy-server']) {
app.commandLine.appendSwitch('proxy-server', global.envParams.cmdParams['proxy-server'])