Merge pull request #81 from stephen304/ignore-known-flatpak-flags

filter out known flags that should not be passed to python. fixes #61
This commit is contained in:
Liam Cottle 2025-05-11 20:59:13 +12:00 committed by GitHub
commit e97352713d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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