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:
parent
63fd01ae26
commit
f1d91162c3
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user