From f1d91162c364ec96cda25b6637e976ddc3f7bf61 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 17 May 2022 00:05:10 -0700 Subject: [PATCH] set --no-sandbox when relaunching on Linux --- tabby-electron/src/services/hostApp.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabby-electron/src/services/hostApp.service.ts b/tabby-electron/src/services/hostApp.service.ts index cc186f2d..0f57fb74 100644 --- a/tabby-electron/src/services/hostApp.service.ts +++ b/tabby-electron/src/services/hostApp.service.ts @@ -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() }