-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--enable-sandbox required? #3
Comments
https://github.com/electron/electron/blob/master/docs/api/sandbox-option.md
The word compatible gives me an eery feeling. I will add some additional documentation to this repository that will underline the importance of --enable-sandbox, and that "sandbox: true" does not suffice on its own. Another thing to figure out is how to package the application with the sandbox enabled (libs like electron-builder, electron-forge & electron-package). |
@carlosperate this might be of interest to you. |
A bit more research into this issue turned this up: electron --enable-sandbox main.js
So this is where it gets interesting..
--no-sandbox --primordial-pipe-token=C5B3996EEBA73B8B7BD3E0B824ABE86A --lang=en-US --app-path=/home/user/.nvm/versions/node/v6.11.5/lib/node_modules/electron/dist/resources/default_app.asar --node-integration=false --webview-tag=false --enable-sandbox Seemingly conflicting parameters. |
In case anyone is looking for a direct solution: If you run this as a NodeJS application, which basically means: nodejs thisCode.js
|
I've updated sandbox-preloader-extended to include this small patch for the moment. |
I was going through the electron issues that involve the sandbox, in an attempt to learn to more about how to properly deploy it. I came across an interesting discussion about the usage of the sandbox & webviews. electron/electron#9611
@bpasero made the following remark:
This got me thinking however, is the --enable-sandbox command line argument required even when you call the BrowserWindow like this?
If it it is the case, then I'd be interested in finding out if we have to pass specific arguments to electron-builder to have electron run with the sandbox enabled in packaged applications.
Maybe @tarruda can shine some light on this?
The text was updated successfully, but these errors were encountered: