You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Degrade to unsandboxed mode in unpackaged apps on Linux #19550
Electron v5 enabled mixed-sandbox mode by default, which means that on some Linux distributions, the chrome-sandbox helper must be setuid root in order for Electron to launch successfully. We don't set this permission automatically during npm install because doing so would require root access. While we do not wish to automatically degrade to non-sandboxed mode in production when this situation is detected, it would be expedient to do so during development, preferably with a big hard-to-ignore warning printed to the console warning that the app will fail to boot when packaged, and instructions on how to set the correct permissions.
so it means that above v4 the electron builder is not working with AppImage at all, as there are no workarounds that i know?
there was a before packing rename the app to app and app to app.sh or something like that, but that created 2 icons that was the problem was. and snap is fixed by now, but given i have to provide 2 builds (both appimage and snap) i have to stick to electron v4.
it is a good security feature, but i can only work from npm, otherwise it will give you the setuid or something like that error.
@p3x-robot electron itself works but there is a matter of proper package preparing, ie electron-builder at the moment doesn't support the case out of the box except for the snap target type (but can be done with custom scripts, repackaging stuff). There are also at least 2 workarounds, see the previous messages for details.
There is no point in doing this, because when developing it's easy to pass a --no-sandbox flag. Degrading the sandbox under certain conditions sounds like creating even more confusion for developers that would likely stumble upon inconsistent behaviour when in development and production.
Activity
p3x-robot commentedon Jul 31, 2019
so it means that above v4 the electron builder is not working with AppImage at all, as there are no workarounds that i know?
there was a before packing rename the app to app and app to app.sh or something like that, but that created 2 icons that was the problem was. and snap is fixed by now, but given i have to provide 2 builds (both appimage and snap) i have to stick to electron v4.
it is a good security feature, but i can only work from npm, otherwise it will give you the setuid or something like that error.
nornagon commentedon Jul 31, 2019
@p3x-robot Please file an issue against whatever you're using to create AppImages.
p3x-robot commentedon Jul 31, 2019
@nornagon file an issue for electron builder or electron itself?
vladimiry commentedon Jul 31, 2019
@p3x-robot electron itself works but there is a matter of proper package preparing, ie electron-builder at the moment doesn't support the case out of the box except for the snap target type (but can be done with custom scripts, repackaging stuff). There are also at least 2 workarounds, see the previous messages for details.
nornagon commentedon Jul 31, 2019
This issue is for a specific task (automatic degradation in unpackaged mode), please continue to use #17972 to discuss the core issue.
pronebird commentedon Aug 30, 2019
There is no point in doing this, because when developing it's easy to pass a
--no-sandboxflag. Degrading the sandbox under certain conditions sounds like creating even more confusion for developers that would likely stumble upon inconsistent behaviour when in development and production.nornagon commentedon Mar 9, 2022
People seem to be managing just fine without this, so I'm going to close the issue.