Compare commits
18 Commits
develop
...
587ef6846c
| Author | SHA1 | Date | |
|---|---|---|---|
| 587ef6846c | |||
| 8d6ce50e6d | |||
| a5ee4221c4 | |||
| d7316449c2 | |||
| de40ef4ebb | |||
| 6e67684579 | |||
| 1fda517a0b | |||
| 4c2b98f99f | |||
| 7dbd07db8c | |||
| 6b14c3928f | |||
| fb403a2b30 | |||
| 4af21c5af5 | |||
| 751d334743 | |||
| 785da57ab1 | |||
| feb3480598 | |||
| 4d95c94b4f | |||
| 3ea9842c03 | |||
| 4e2136f03f |
+4
-1
@@ -1030,9 +1030,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 = createCleanChildEnv()
|
||||
|
||||
Reference in New Issue
Block a user