Skip to content

Commit

Permalink
fix(deb): chmod SUID bit on chrome-sandbox for debs (#4163)
Browse files Browse the repository at this point in the history
Add SUID bit to packaged `chrome-sandbox` so that it works out of the box on
distros like Debian.

Part of #3872
  • Loading branch information
jryans authored and develar committed Sep 23, 2019
1 parent d738644 commit 7c2881e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/app-builder-lib/templates/linux/after-install.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
# Link to the binary
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'

# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true

update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
update-desktop-database /usr/share/applications || true

0 comments on commit 7c2881e

Please sign in to comment.