From a4b0a25dabffc281974003159a381b10075de4a5 Mon Sep 17 00:00:00 2001 From: hicccc77 <98377878+hicccc77@users.noreply.github.com> Date: Sat, 14 Mar 2026 20:29:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20elevated=20helper=20stderr=20=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E5=88=B0=20stdout=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/services/keyServiceMac.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/services/keyServiceMac.ts b/electron/services/keyServiceMac.ts index 1699c87..fab059e 100644 --- a/electron/services/keyServiceMac.ts +++ b/electron/services/keyServiceMac.ts @@ -363,7 +363,7 @@ export class KeyServiceMac { // 用 AppleScript 的 quoted form 组装命令,避免复杂 shell 拼接导致整条失败 const scriptLines = [ `set helperPath to ${JSON.stringify(helperPath)}`, - `set cmd to quoted form of helperPath & " ${pid} ${waitMs}"`, + `set cmd to quoted form of helperPath & " ${pid} ${waitMs} 2>&1"`, 'do shell script cmd with administrator privileges' ] onStatus?.('已准备就绪,现在登录微信或退出登录后重新登录微信', 0)