fix(hooks): use terminal-notifier for macOS notification click-to-focus

This commit is contained in:
1noilimrev
2026-02-27 14:39:07 +09:00
parent f3cbc24e78
commit 1c6d384f14
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -32,11 +32,13 @@ export const getPowershellPath = createCommandFinder("powershell")
export const getAfplayPath = createCommandFinder("afplay")
export const getPaplayPath = createCommandFinder("paplay")
export const getAplayPath = createCommandFinder("aplay")
export const getTerminalNotifierPath = createCommandFinder("terminal-notifier")
export function startBackgroundCheck(platform: Platform): void {
if (platform === "darwin") {
getOsascriptPath().catch(() => {})
getAfplayPath().catch(() => {})
getTerminalNotifierPath().catch(() => {})
} else if (platform === "linux") {
getNotifySendPath().catch(() => {})
getPaplayPath().catch(() => {})