1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-11 13:13:59 +03:00

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
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -74,7 +74,11 @@ export class ElectronHostAppService extends HostAppService {
if (isPortable) {
this.electron.app.relaunch({ execPath: process.env.PORTABLE_EXECUTABLE_FILE })
} 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()
}