From 95f48a5d4d7ebc7984b4d1e2af74efb9a68b430f Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Fri, 18 Oct 2024 13:18:16 +0800 Subject: [PATCH] fix auto start --- src/main/sys/autoRun.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sys/autoRun.ts b/src/main/sys/autoRun.ts index c834e89..02d60d4 100644 --- a/src/main/sys/autoRun.ts +++ b/src/main/sys/autoRun.ts @@ -38,7 +38,7 @@ export async function enableAutoRun(): Promise { if (process.platform === 'win32') { const execPromise = promisify(exec) await execPromise( - `C:\\\\Windows\\System32\\schtasks.exe /create /tn "${appName}" /tr "${exePath()}" /sc onlogon /delay 0000:03 /rl HIGHEST /it /f` + `C:\\\\Windows\\System32\\schtasks.exe /create /tn "${appName}" /tr "\\"${exePath()}\\"" /sc onlogon /delay 0000:03 /rl HIGHEST /it /f` ) } if (process.platform === 'darwin') {