fix Linux AppImage sandbox

This commit is contained in:
Mohamed Boudra
2026-03-22 00:47:40 +07:00
parent fcbdb09796
commit d102a8fd64
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -85,7 +85,11 @@ export function parseCliPassthroughArgsFromArgv(argv: string[]): string[] | null
const startIndex = process.defaultApp ? 2 : 1;
const effective = argv
.slice(startIndex)
.filter((arg) => !arg.startsWith(IGNORED_GUI_LAUNCH_ARG_PREFIX));
.filter(
(arg) =>
!arg.startsWith(IGNORED_GUI_LAUNCH_ARG_PREFIX) &&
!arg.startsWith("--"),
);
return effective.length > 0 ? effective : null;
}