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.

Calls: Dia (company.thebrowser.dia) is a browser whose Meet calls are offered, with names read from its tab title (#131)

christianmat71b095ac90eb
diff --git a/app/native/yogurt-mac/main.swift b/app/native/yogurt-mac/main.swift
index 42f3e8ed..6aab54ba 100644
--- a/app/native/yogurt-mac/main.swift
+++ b/app/native/yogurt-mac/main.swift
@@ -202,7 +202,7 @@ func browserTitle(_ id: String) -> String? {
return axText(axAttr(window as! AXUIElement, kAXTitleAttribute))
}
let safari = id == "com.apple.Safari"
- guard ["com.google.Chrome", "company.thebrowser.Browser", "com.ardia.browser", "com.microsoft.edgemac", "com.brave.Browser", "com.apple.Safari"].contains(id),
+ guard ["com.google.Chrome", "company.thebrowser.Browser", "com.ardia.browser", "company.thebrowser.dia", "com.microsoft.edgemac", "com.brave.Browser", "com.apple.Safari"].contains(id),
!NSRunningApplication.runningApplications(withBundleIdentifier: id).isEmpty else { return nil }
let src = "tell application id \"\(id)\" to get " + (safari ? "name of current tab of front window" : "title of active tab of front window")
var err: NSDictionary?
@@ -218,7 +218,7 @@ func browserTitle(_ id: String) -> String? {
* an assistive app asks, so they are asked the way screen readers do (AXManualAccessibility): see askTree.
*/
let axKeys = [kAXRoleAttribute, kAXSubroleAttribute, kAXDescriptionAttribute, kAXTitleAttribute, kAXValueAttribute, kAXIdentifierAttribute, "AXDOMClassList", kAXChildrenAttribute, kAXSizeAttribute] as [String]
-let chromium: Set<String> = ["com.google.Chrome", "company.thebrowser.Browser", "com.ardia.browser", "com.brave.Browser", "com.microsoft.edgemac", "com.microsoft.teams", "com.microsoft.teams2"]
+let chromium: Set<String> = ["com.google.Chrome", "company.thebrowser.Browser", "com.ardia.browser", "company.thebrowser.dia", "com.brave.Browser", "com.microsoft.edgemac", "com.microsoft.teams", "com.microsoft.teams2"]
var askedTree = Set<pid_t>()
/// Asks a Chromium or Electron app to build its page's accessibility tree, once per process. A browser is asked only
diff --git a/app/src/main/callNames/index.ts b/app/src/main/callNames/index.ts
index 6156626e..27a5bded 100644
--- a/app/src/main/callNames/index.ts
+++ b/app/src/main/callNames/index.ts
@@ -26,6 +26,7 @@ const APPS: Record<string, { kind: CallKind; ids: string[] }> = {
Chrome: { kind: 'meet', ids: ['com.google.Chrome', 'chrome', 'google-chrome', 'chrome.exe'] },
Arc: { kind: 'meet', ids: ['company.thebrowser.Browser', 'arc.exe'] },
Ardia: { kind: 'meet', ids: ['com.ardia.browser'] },
+ Dia: { kind: 'meet', ids: ['company.thebrowser.dia'] },
Brave: { kind: 'meet', ids: ['com.brave.Browser', 'brave', 'brave.exe'] },
Edge: { kind: 'meet', ids: ['com.microsoft.edgemac', 'msedge', 'com.microsoft.Edge', 'msedge.exe'] },
Safari: { kind: 'meet', ids: ['com.apple.Safari'] },
diff --git a/app/src/main/detect.ts b/app/src/main/detect.ts
index 7745a515..8e8ff9f7 100644
--- a/app/src/main/detect.ts
+++ b/app/src/main/detect.ts
@@ -26,6 +26,7 @@ const MAC_APPS: CallApp[] = [
{ id: 'com.google.Chrome', name: 'Chrome', browser: true },
{ id: 'company.thebrowser.Browser', name: 'Arc', browser: true },
{ id: 'com.ardia.browser', name: 'Ardia', browser: true },
+ { id: 'company.thebrowser.dia', name: 'Dia', browser: true },
{ id: 'com.apple.Safari', name: 'Safari', browser: true },
{ id: 'com.microsoft.edgemac', name: 'Edge', browser: true },
{ id: 'org.mozilla.firefox', name: 'Firefox', browser: true },
diff --git a/app/test/callNames.test.ts b/app/test/callNames.test.ts
index 9766c6c1..e2ae0cfb 100644
--- a/app/test/callNames.test.ts
+++ b/app/test/callNames.test.ts
@@ -91,6 +91,9 @@ describe('watchIds: only the call app the meeting is in', () => {
// Ardia, a Chromium browser on the Mac (#123): a hand-started recording reads its Meet tab too
expect(watchIds('Ardia')).toEqual(['com.ardia.browser'])
expect(watchIds(null)).toContain('com.ardia.browser')
+ // Dia (The Browser Company, Chromium) too (#131)
+ expect(watchIds('Dia')).toEqual(['company.thebrowser.dia'])
+ expect(watchIds(null)).toContain('company.thebrowser.dia')
})
})
diff --git a/app/test/detect.test.ts b/app/test/detect.test.ts
index 7aa69bd2..c6d89e21 100644
--- a/app/test/detect.test.ts
+++ b/app/test/detect.test.ts
@@ -93,7 +93,7 @@ describe('real bundle ids', () => {
])('%s is %s', (id, name) => expect(p(id)).toBe(name))
it.each([
['com.google.Chrome', 'Chrome'], ['company.thebrowser.Browser', 'Arc'], ['com.microsoft.edgemac', 'Edge'],
- ['org.mozilla.firefox', 'Firefox'], ['com.brave.Browser', 'Brave'], ['com.ardia.browser', 'Ardia'],
+ ['org.mozilla.firefox', 'Firefox'], ['com.brave.Browser', 'Brave'], ['com.ardia.browser', 'Ardia'], ['company.thebrowser.dia', 'Dia'],
['com.apple.Safari', 'Safari'], ['com.apple.WebKit.WebContent', 'Safari'], ['com.apple.WebKit.GPU', 'Safari'],
])('browser %s is %s once the tab is a call', (id, name) => expect(p(id, { title: 'Zoom Meeting' })).toBe(name))
it('safari\'s web process without a call sign: nothing', () => expect(p('com.apple.WebKit.WebContent', { title: 'YouTube' })).toBeUndefined())
diff --git a/app/test/macTeamsTree.test.ts b/app/test/macTeamsTree.test.ts
index 25d33088..d35ecc1a 100644
--- a/app/test/macTeamsTree.test.ts
+++ b/app/test/macTeamsTree.test.ts
@@ -31,7 +31,7 @@ describe('call-watch on the Teams desktop app (#111)', () => {
expect(swift).toMatch(/readDataToEndOfFile\(\); DispatchQueue\.main\.sync \{ resetTrees\(\) \}; exit\(0\)/)
})
it("reads a Meet tab in a browser whose window title is only the browser's name, and asks the window itself for the page (#123)", () => {
- expect(swift).toMatch(/"com\.ardia\.browser", "com\.microsoft\.edgemac", "com\.brave\.Browser", "com\.apple\.Safari"\]\.contains\(id\)/)
+ expect(swift).toMatch(/"com\.ardia\.browser", "company\.thebrowser\.dia", "com\.microsoft\.edgemac", "com\.brave\.Browser", "com\.apple\.Safari"\]\.contains\(id\)/)
const windows = swift.slice(swift.indexOf('func callWindows'), swift.indexOf('func watchCalls'))
expect(windows).toContain('browserTitle(id)')
expect(windows).toContain('kAXFocusedWindowAttribute')