chore: disable sandbox on snap package

Fixes https://github.com/microsoft/vscode/issues/127081
Refs https://github.com/microsoft/vscode/issues/127140
This commit is contained in:
deepak1556 2021-06-25 19:26:08 +09:00
parent c0cf0a12c6
commit 7eae810d8a

View file

@ -27,9 +27,6 @@ parts:
- gnome
plugin: dump
source: .
override-build: |
snapcraftctl build
chmod 4755 $SNAPCRAFT_PART_INSTALL/usr/share/@@NAME@@/chrome-sandbox
stage-packages:
- ibus-gtk3
- fcitx-frontend-gtk3
@ -58,14 +55,14 @@ parts:
apps:
@@NAME@@:
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
common-id: @@NAME@@.desktop
environment:
DISABLE_WAYLAND: 1
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas
url-handler:
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
environment:
DISABLE_WAYLAND: 1
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas