From d102a8fd64e14e8de37155f938ca7e3d33570439 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 22 Mar 2026 00:47:40 +0700 Subject: [PATCH] fix Linux AppImage sandbox --- packages/desktop/src/daemon/runtime-paths.ts | 6 +++++- packages/desktop/src/main.ts | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/desktop/src/daemon/runtime-paths.ts b/packages/desktop/src/daemon/runtime-paths.ts index 34397e26b..8d5db11d2 100644 --- a/packages/desktop/src/daemon/runtime-paths.ts +++ b/packages/desktop/src/daemon/runtime-paths.ts @@ -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; } diff --git a/packages/desktop/src/main.ts b/packages/desktop/src/main.ts index 23cc7eb3b..a7d5d00e2 100644 --- a/packages/desktop/src/main.ts +++ b/packages/desktop/src/main.ts @@ -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");