update launcher frontend

This commit is contained in:
2026-07-03 17:43:22 +09:00
parent 327e4492b7
commit 4e2136f03f
+4 -1
View File
@@ -876,9 +876,12 @@ function createWindow(): void {
if (spawnPath) { if (spawnPath) {
const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath
const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : [] const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : []
const noSandboxArg = !useDevLauncher && process.platform === 'linux' && spawnPath.toLowerCase().endsWith('.appimage')
? ['--no-sandbox']
: []
const args = useDevLauncher const args = useDevLauncher
? ['run', 'dev'] ? ['run', 'dev']
: [...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])] : [...noSandboxArg, ...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])]
const execBin = useDevLauncher ? 'npm' : spawnPath const execBin = useDevLauncher ? 'npm' : spawnPath
const childEnv = { ...process.env } const childEnv = { ...process.env }