Disable sandbox on Linux
Ref: https://github.com/jitsi/jitsi-meet-electron/issues/231
This commit is contained in:
parent
bbe835d23a
commit
17bce238d4
|
@ -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
|
||||
|
|
|
@ -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({
|
Loading…
Reference in New Issue