mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-22 11:28:00 +00:00
set --no-sandbox when relaunching on Linux
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user