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;
}
+4
View File
@@ -21,6 +21,10 @@ import {
import { registerOpenerHandlers } from "./features/opener.js";
import { setupApplicationMenu } from "./features/menu.js";
if (process.platform === "linux") {
app.commandLine.appendSwitch("no-sandbox");
}
const DEV_SERVER_URL = process.env.EXPO_DEV_URL ?? "http://localhost:8081";
const APP_SCHEME = "paseo";
app.setName("Paseo");