Skip to content

Commit 7c2881e

Browse files
jryansdevelar
authored andcommitted
fix(deb): chmod SUID bit on chrome-sandbox for debs (#4163)
Add SUID bit to packaged `chrome-sandbox` so that it works out of the box on distros like Debian. Part of #3872
1 parent d738644 commit 7c2881e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app-builder-lib/templates/linux/after-install.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
# Link to the binary
44
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
55

6+
# SUID chrome-sandbox for Electron 5+
7+
chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
8+
69
update-mime-database /usr/share/mime || true
7-
update-desktop-database /usr/share/applications || true
10+
update-desktop-database /usr/share/applications || true

0 commit comments

Comments
 (0)