Ver Fonte

append --no-sandbox when starting on Linux (fixes #1525)

Eugene Pankov há 5 anos atrás
pai
commit
1ab528b05c
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      build/linux/after-install.tpl

+ 5 - 2
build/linux/after-install.tpl

@@ -1,4 +1,7 @@
 #!/bin/bash
+cat > '/usr/bin/${executable}' << END
+#!/bin/sh
+'/opt/${productFilename}/${executable}' --no-sandbox $@
+END
 
-# Link to the binary
-ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
+chmod +x '/usr/bin/${executable}'