Skip to content

Commit 7eae810

Browse files
committed
chore: disable sandbox on snap package
Fixes #127081 Refs #127140
1 parent c0cf0a1 commit 7eae810

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

resources/linux/snap/snapcraft.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ parts:
2727
- gnome
2828
plugin: dump
2929
source: .
30-
override-build: |
31-
snapcraftctl build
32-
chmod 4755 $SNAPCRAFT_PART_INSTALL/usr/share/@@NAME@@/chrome-sandbox
3330
stage-packages:
3431
- ibus-gtk3
3532
- fcitx-frontend-gtk3
@@ -58,14 +55,14 @@ parts:
5855

5956
apps:
6057
@@NAME@@:
61-
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@
58+
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
6259
common-id: @@NAME@@.desktop
6360
environment:
6461
DISABLE_WAYLAND: 1
6562
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas
6663

6764
url-handler:
68-
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url
65+
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
6966
environment:
7067
DISABLE_WAYLAND: 1
7168
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas

0 commit comments

Comments
 (0)