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 }