From dd9857674390977b24544cb86c56aa9ad94daf33 Mon Sep 17 00:00:00 2001 From: Trevor Walker Date: Thu, 24 Sep 2026 03:15:34 -0600 Subject: [PATCH] fix(desktop): keep SnapShot shortcut helper out of Dock --- .../src/snapShot/MacModifierPairShortcutProcess.test.ts | 5 +++++ apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.test.ts b/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.test.ts index 81889f9f07..d0548c78c0 100644 --- a/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.test.ts +++ b/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.test.ts @@ -54,6 +54,11 @@ describe("macOS modifier pair poller", () => { const poller = spawnedPollers[0]!; expect(poller.command).toBe("/usr/bin/osascript"); expect(poller.args.slice(-2)).toEqual(["8", "16"]); + const script = poller.args[3]!; + expect(script.indexOf("NSApplicationActivationPolicyProhibited")).toBeGreaterThan(0); + expect(script.indexOf("NSApplicationActivationPolicyProhibited")).toBeLessThan( + script.indexOf('ObjC.import("CoreGraphics")'), + ); poller.emitStderr("ready\ntrig"); const stop = await started; diff --git a/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts b/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts index 1c638f2444..c869e92efa 100644 --- a/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts +++ b/apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts @@ -12,6 +12,9 @@ const MAC_MODIFIER_PAIR_DEVICE_MASKS: Record