[desktop] Pass the SUID workaround correctly

The flag itself is documented as supported:
https://www.electronjs.org/docs/latest/api/command-line-switches

I was just passing it incorrectly (hopefully).
This commit is contained in:
Manav Rathi 2024-05-12 18:41:10 +05:30
parent 8328bbe5be
commit 5b92133aae
No known key found for this signature in database

View file

@ -140,7 +140,7 @@ const registerPrivilegedSchemes = () => {
* See: https://github.com/electron/electron/issues/17972
*/
const suidWorkaroundOnLinux = () =>
process.platform == "linux" && app.commandLine.appendSwitch("--no-sandbox");
process.platform == "linux" && app.commandLine.appendSwitch("no-sandbox");
/**
* Create an return the {@link BrowserWindow} that will form our app's UI.