Browse Source

set --no-sandbox when relaunching on Linux

Eugene Pankov 3 years ago
parent
commit
f1d91162c3
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tabby-electron/src/services/hostApp.service.ts

+ 5 - 1
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()
     }