Skip to content

Commit

Permalink
chore: disable sandbox on snap package
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jun 25, 2021
1 parent 5765d8a commit 5b2263d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions linux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 5b2263d

Please sign in to comment.