Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

AI apps (Mac): starting a session while Yogurt is closed opens it in the background with no window, instead of popping it up every time (#54)

christianmatefe9218105c1
diff --git a/app/native/yogurt-mcp/main.swift b/app/native/yogurt-mcp/main.swift
index cef3ec5d..8ff6cc15 100644
--- a/app/native/yogurt-mcp/main.swift
+++ b/app/native/yogurt-mcp/main.swift
@@ -25,10 +25,10 @@ func connectOnce() -> Int32? {
var fd = connectOnce()
if fd == nil && env["YOGURT_MCP_NO_LAUNCH"] == nil {
- // -g: in the background, so starting a chat never pulls Yogurt in front
+ // -g: in the background, so starting a chat never pulls Yogurt in front; --hidden: and Yogurt opens no window (#54)
let open = Process()
open.executableURL = URL(fileURLWithPath: "/usr/bin/open")
- open.arguments = ["-g", "-b", "so.yogurt.app"]
+ open.arguments = ["-g", "-b", "so.yogurt.app", "--args", "--hidden"]
try? open.run(); open.waitUntilExit()
for _ in 0..<60 { if let f = connectOnce() { fd = f; break }; usleep(500_000) }
}
diff --git a/app/src/main/mcp/paths.ts b/app/src/main/mcp/paths.ts
index e82c9569..951aac41 100644
--- a/app/src/main/mcp/paths.ts
+++ b/app/src/main/mcp/paths.ts
@@ -28,8 +28,8 @@ export function launchCommand(platform: string, packaged: boolean, execPath: str
return undefined
}
-/** started by the helper off a Mac: no window, like opening at login. A Mac launch never changes */
-export const startedHidden = (platform: string, argv: string[]): boolean => platform !== 'darwin' && argv.includes(HIDDEN_ARG)
+/** started by the helper (an AI app's session): no window, like opening at login (#54: a Mac popped up on every session) */
+export const startedHidden = (_platform: string, argv: string[]): boolean => argv.includes(HIDDEN_ARG)
/** Linux: the AppImage is mounted somewhere new each launch, so AI apps are given a copy in the profile folder */
export function helperCopyPath(platform: string, profile: string): string | undefined {
diff --git a/app/test/mcpPaths.test.ts b/app/test/mcpPaths.test.ts
index 96027b81..375e3d20 100644
--- a/app/test/mcpPaths.test.ts
+++ b/app/test/mcpPaths.test.ts
@@ -37,11 +37,12 @@ describe('what the helper opens when Yogurt is closed', () => {
expect(launchCommand('win32', false, 'C:\\dev\\electron.exe', {})).toBeUndefined()
expect(launchCommand('linux', false, '/dev/electron', { APPIMAGE: '/x.AppImage' })).toBeUndefined()
})
- it('starts without a window off a Mac when the helper asks, and never changes a Mac launch', () => {
+ it('starts without a window when the helper asks, a Mac too (an AI app session no longer pops Yogurt up, #54)', () => {
expect(startedHidden('win32', ['Yogurt.exe', '--hidden'])).toBe(true)
expect(startedHidden('linux', ['yogurt', '--hidden'])).toBe(true)
expect(startedHidden('linux', ['yogurt'])).toBe(false)
- expect(startedHidden('darwin', ['Yogurt', '--hidden'])).toBe(false)
+ expect(startedHidden('darwin', ['Yogurt', '--hidden'])).toBe(true)
+ expect(startedHidden('darwin', ['Yogurt'])).toBe(false)
})
})