Skip to content

Commit 8ff2f1d

Browse files
committed
fix(desktop): SnapShot shortcut helper no longer adds a Dock icon on macOS
1 parent f5ef0dd commit 8ff2f1d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/desktop/src/snapShot/MacModifierPairShortcutProcess.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ const MAC_MODIFIER_PAIR_DEVICE_MASKS: Record<SnapShotModifier, readonly [number,
1111
meta: [0x8, 0x10],
1212
};
1313

14+
// The CoreGraphics query connects osascript to the window server, which registers it as a
15+
// foreground app attributed to T3 Code. Go background-only first so it never gets a Dock tile.
1416
const POLLER_SCRIPT = `
17+
ObjC.import("AppKit");
18+
$.NSApplication.sharedApplication.setActivationPolicy($.NSApplicationActivationPolicyProhibited);
1519
ObjC.import("CoreGraphics");
1620
ObjC.import("unistd");
1721
function run(argv) {

0 commit comments

Comments
 (0)