set --no-sandbox when relaunching on Linux

This commit is contained in:
Eugene Pankov
2022-05-17 00:05:10 -07:00
parent 63fd01ae26
commit f1d91162c3

View File

@@ -74,7 +74,11 @@ export class ElectronHostAppService extends HostAppService {
if (isPortable) { if (isPortable) {
this.electron.app.relaunch({ execPath: process.env.PORTABLE_EXECUTABLE_FILE }) this.electron.app.relaunch({ execPath: process.env.PORTABLE_EXECUTABLE_FILE })
} else { } else {
this.electron.app.relaunch() let args: string[] = []
if (this.platform === Platform.Linux) {
args = ['--no-sandbox']
}
this.electron.app.relaunch({ args })
} }
this.electron.app.exit() this.electron.app.exit()
} }