From 4e2136f03f5841b3a432dbe4c2cc38ce3c7043d2 Mon Sep 17 00:00:00 2001 From: chyoo Date: Fri, 3 Jul 2026 17:43:22 +0900 Subject: [PATCH] update launcher frontend --- src/main/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index a87235b..76ebabb 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -876,9 +876,12 @@ function createWindow(): void { if (spawnPath) { const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : [] + const noSandboxArg = !useDevLauncher && process.platform === 'linux' && spawnPath.toLowerCase().endsWith('.appimage') + ? ['--no-sandbox'] + : [] const args = useDevLauncher ? ['run', 'dev'] - : [...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])] + : [...noSandboxArg, ...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])] const execBin = useDevLauncher ? 'npm' : spawnPath const childEnv = { ...process.env }