electron-vite icon indicating copy to clipboard operation
electron-vite copied to clipboard

append the `--no-sandbox` when running with root user

Open cnjack opened this issue 1 year ago • 1 comments

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

cnjack avatar Sep 21 '23 09:09 cnjack

@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.

alex8088 avatar Sep 26 '23 02:09 alex8088