filter out known flags that should not be passed to python. fixes #61

This commit is contained in:
Stephen Smith
2025-04-17 18:52:32 -04:00
parent b8d388fa56
commit e9a9e9f831

View File

@@ -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){