electron-vite
electron-vite copied to clipboard
append the `--no-sandbox` when running with root user
Description
The latest electron requires --no-sandbox
argument if running with root user
Additional context
N/A
What is the purpose of this pull request?
- [x] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
Before submitting the PR, please make sure you do the following
- [x] Read the Contributing Guidelines.
- [x] Read the Pull Request Guidelines and follow the Commit Convention.
- [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123
).
@cnjack
Thank you for your contribution.
I think this is a bad choice because development with or without sandbox enabled makes a big difference. Developers are not clear about this setting, which will lead to some unknown problems after packaging. It should be up to the developer to clearly enable or disable it through code settings.