From 98103fd1391fea8045800b8adc257fc36976f858 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 29 Dec 2019 19:07:32 +0100 Subject: [PATCH] disable sandboxing on linux (fixes #960 again) --- app/lib/app.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/lib/app.ts b/app/lib/app.ts index 649ac0c4..3544ba06 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -13,9 +13,12 @@ export class Application { }) const configData = loadConfig() - if (process.platform === 'linux' && ((configData.appearance || {}).opacity || 1) !== 1) { - app.commandLine.appendSwitch('enable-transparent-visuals') - app.disableHardwareAcceleration() + if (process.platform === 'linux') { + app.commandLine.appendSwitch('no-sandbox') + if (((configData.appearance || {}).opacity || 1) !== 1) { + app.commandLine.appendSwitch('enable-transparent-visuals') + app.disableHardwareAcceleration() + } } app.commandLine.appendSwitch('disable-http-cache')