From e9a9e9f831974e6eed1a562a30d952c5036cc700 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 17 Apr 2025 18:52:32 -0400 Subject: [PATCH] filter out known flags that should not be passed to python. fixes #61 --- electron/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electron/main.js b/electron/main.js index 853dbee..edd8bc2 100644 --- a/electron/main.js +++ b/electron/main.js @@ -99,7 +99,9 @@ function getDefaultReticulumConfigDir() { app.whenReady().then(async () => { // get arguments passed to application, and remove the provided application path - const userProvidedArguments = process.argv.slice(1); + const ignoredArguments = ["--no-sandbox"]; + const userProvidedArguments = process.argv.slice(1) + .filter(arg => !ignoredArguments.includes(arg)); const shouldLaunchHeadless = userProvidedArguments.includes("--headless"); if(!shouldLaunchHeadless){