Compare commits

...

13 Commits

+4 -1
View File
@@ -1030,9 +1030,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 = createCleanChildEnv() const childEnv = createCleanChildEnv()