Disable sandbox on Linux

Ref: https://github.com/jitsi/jitsi-meet-electron/issues/231
This commit is contained in:
Saúl Ibarra Corretgé 2020-04-14 10:01:43 +02:00
parent bbe835d23a
commit 17bce238d4
2 changed files with 15 additions and 4 deletions

View File

@ -19,11 +19,9 @@ matrix:
- libxtst-dev
before_script:
- | # Fix chrome-sandbox: https://github.com/electron/electron/issues/17972
- | # Disable sandbox: https://github.com/electron/electron/issues/17972
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
echo "Fixing chrome-sandbox permissions..."
sudo chown root ./node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
patch -p1 -i patches/app-builder-lib+22.3.6.patch
fi
script:
- npm run dist

View File

@ -0,0 +1,13 @@
diff --git a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
index 6e674b9..8e5be4f 100644
--- a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
+++ b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
@@ -135,7 +135,7 @@ class LinuxTargetHelper {
exec += executableArgs.join(" ");
}
- exec += " %U";
+ exec += " --no-sandbox %U";
}
const desktopMeta = Object.assign(Object.assign({