fix(desktop): SnapShot shortcut helper no longer adds a Dock icon on macOS (#13286)
This commit is contained in:
1 parent
c0912debcb
commit
6b4b19096a
1 file changed
+4
@@ -11,7 +11,11 @@ const MAC_MODIFIER_PAIR_DEVICE_MASKS: Record<SnapShotModifier, readonly [number,
|
||||
meta: [0x8, 0x10],
|
||||
};
|
||||
|
||||
// The CoreGraphics query connects osascript to the window server, which registers it as a
|
||||
// foreground app attributed to T3 Code. Go background-only first so it never gets a Dock tile.
|
||||
const POLLER_SCRIPT = `
|
||||
ObjC.import("AppKit");
|
||||
$.NSApplication.sharedApplication.setActivationPolicy($.NSApplicationActivationPolicyProhibited);
|
||||
ObjC.import("CoreGraphics");
|
||||
ObjC.import("unistd");
|
||||
function run(argv) {
|
||||
|
||||
Reference in new issue
Block a user