Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(app): make the About box reachable and the update check honest
Claude5624109059d2
diff --git a/electron/about.test.ts b/electron/about.test.tsindex 962c3d7d9..42cfedf52 100644--- a/electron/about.test.ts+++ b/electron/about.test.ts@@ -1,5 +1,11 @@import { describe, expect, it } from "vitest";-import { type AboutFacts, COPYRIGHT, formatAboutDetail, WEBSITE_URL } from "./about";+import {+ type AboutFacts,+ COPYRIGHT,+ formatAboutDetail,+ usesNativeAboutPanel,+ WEBSITE_URL,+} from "./about";function facts(overrides: Partial<AboutFacts> = {}): AboutFacts {return {@@ -42,3 +48,16 @@ describe("formatAboutDetail", () => {).toContain("linux x64 · appimage");});});++// CI is Linux-only, so the platform is pinned rather than read from `process` — the macOS+// branch is the one no automated run would otherwise ever execute.+describe("usesNativeAboutPanel", () => {+ it("sends macOS to its own panel", () => {+ expect(usesNativeAboutPanel("darwin")).toBe(true);+ });++ it("leaves every other platform on the message box we build", () => {+ expect(usesNativeAboutPanel("win32")).toBe(false);+ expect(usesNativeAboutPanel("linux")).toBe(false);+ });+});diff --git a/electron/about.ts b/electron/about.tsindex 9a9af95ef..ce5656fb5 100644--- a/electron/about.ts+++ b/electron/about.ts@@ -9,7 +9,21 @@import type { InstallChannel } from "./install-channel";export const WEBSITE_URL = "https://getopenscreen.com";-export const COPYRIGHT = "© OpenScreen contributors — MIT License";+/** The brand spelling, for the surfaces we render ourselves. NOT `app.name`: that resolves to+ * electron-builder's `productName` ("Openscreen") when packaged and to package.json's `name`+ * ("openscreen") in dev, so the About box would disagree with its own title bar. */+export const PRODUCT_NAME = "OpenScreen";+/** Must name the holder in LICENSE. electron-builder derives Info.plist's+ * NSHumanReadableCopyright and the Windows LegalCopyright from package.json's `author`, so a+ * third spelling here would put three attributions on one binary. */+export const COPYRIGHT = "© 2025 Siddharth Vaddem — MIT License";++/** macOS opens its own About panel (the app menu's `role: "about"`), so it is the one platform+ * that must not be shown the message box we build, and the only one whose panel needs+ * populating up front. Pure so both branches can be pinned from a Linux-only CI. */+export function usesNativeAboutPanel(platform: NodeJS.Platform): boolean {+ return platform === "darwin";+}export interface AboutFacts {version: string;diff --git a/electron/i18n.ts b/electron/i18n.tsindex 1492578c0..00e013ba4 100644--- a/electron/i18n.ts+++ b/electron/i18n.ts@@ -15,6 +15,8 @@ import commonJa from "../src/i18n/locales/ja-JP/common.json";import dialogsJa from "../src/i18n/locales/ja-JP/dialogs.json";import commonKo from "../src/i18n/locales/ko-KR/common.json";import dialogsKo from "../src/i18n/locales/ko-KR/dialogs.json";+import commonPtBr from "../src/i18n/locales/pt-BR/common.json";+import dialogsPtBr from "../src/i18n/locales/pt-BR/dialogs.json";import commonRu from "../src/i18n/locales/ru/common.json";import dialogsRu from "../src/i18n/locales/ru/dialogs.json";import commonTr from "../src/i18n/locales/tr/common.json";@@ -34,6 +36,7 @@ type Locale =| "it"| "ja-JP"| "ko-KR"+ | "pt-BR"| "ru"| "tr"| "vi"@@ -50,6 +53,7 @@ const messages: Record<Locale, Record<Namespace, MessageMap>> = {it: { common: commonIt, dialogs: dialogsIt },"ja-JP": { common: commonJa, dialogs: dialogsJa },"ko-KR": { common: commonKo, dialogs: dialogsKo },+ "pt-BR": { common: commonPtBr, dialogs: dialogsPtBr },ru: { common: commonRu, dialogs: dialogsRu },tr: { common: commonTr, dialogs: dialogsTr },vi: { common: commonVi, dialogs: dialogsVi },@@ -68,6 +72,7 @@ export function setMainLocale(locale: string) {locale === "it" ||locale === "ja-JP" ||locale === "ko-KR" ||+ locale === "pt-BR" ||locale === "ru" ||locale === "tr" ||locale === "vi" ||diff --git a/electron/install-channel.test.ts b/electron/install-channel.test.tsindex b34861f7a..a01751b5f 100644--- a/electron/install-channel.test.ts+++ b/electron/install-channel.test.ts@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";import {classifyInstall,type InstallProbe,+ offersUpdateCheck,ownsItsUpdates,platformOwnsUpdates,} from "./install-channel";@@ -134,3 +135,49 @@ describe("platformOwnsUpdates", () => {}});});++// The rule every update affordance keys off. Both vetoes are pinned here because the surfaces+// that enforce them — the app menu, the Help menu, the tray, the HUD and the IPC handler — are+// built in main.ts, which has no test file: this is the only place the matrix is checked.+describe("offersUpdateCheck", () => {+ const PACKAGE_MANAGED = ["store", "flatpak", "snap", "nix"] as const;+ const SELF_MANAGED = [+ "nsis",+ "dmg",+ "appimage",+ "deb",+ "rpm",+ "pacman",+ "dev",+ "unknown",+ ] as const;++ it("offers nothing at all where a package manager owns the update", () => {+ for (const channel of PACKAGE_MANAGED) {+ expect(offersUpdateCheck(channel, { recording: false })).toBe(false);+ }+ });++ it("offers the check on a copy that can update itself", () => {+ for (const channel of SELF_MANAGED) {+ expect(offersUpdateCheck(channel, { recording: true })).toBe(false);+ expect(offersUpdateCheck(channel, { recording: false })).toBe(true);+ }+ });++ // An update must never interrupt a take. The tray used to enforce this structurally — its+ // recording menu holds nothing but "Stop Recording" — but the app and Help menus are built+ // once, so the veto has to live in the rule rather than in one surface's template.+ it("withdraws the check for the length of a recording", () => {+ expect(offersUpdateCheck("nsis", { recording: true })).toBe(false);+ expect(offersUpdateCheck("dmg", { recording: true })).toBe(false);+ });++ // A package-managed copy is never offered the check, recording or not — the two vetoes are+ // independent, and neither one re-enables the other.+ it("keeps the package-manager veto while recording", () => {+ for (const channel of PACKAGE_MANAGED) {+ expect(offersUpdateCheck(channel, { recording: true })).toBe(false);+ }+ });+});diff --git a/electron/install-channel.ts b/electron/install-channel.tsindex 2e007c588..24485973e 100644--- a/electron/install-channel.ts+++ b/electron/install-channel.ts@@ -117,6 +117,27 @@ export function platformOwnsUpdates(channel: InstallChannel): boolean {/** Read the real environment. `process.windowsStore` is typed as an optional `true`, so it is* normalised to a boolean here rather than at each call site. */+/** The single rule every update affordance keys off — app menu, Help menu, tray, HUD and the+ * IPC handler — so it cannot be asked two different ways. `platformOwnsUpdates` is the+ * permanent veto (a Store/Flathub/Snap/Nix copy is offered nothing at all, not even a disabled+ * item); `recording` is the transient one. Pure, so the whole matrix can be pinned in a test+ * from a Linux-only CI. */+export function offersUpdateCheck(+ channel: InstallChannel,+ state: { readonly recording: boolean },+): boolean {+ return !platformOwnsUpdates(channel) && !state.recording;+}++/** Memoized: `probeInstall()` touches the filesystem, and the answer cannot change while the+ * process lives. Lives here rather than in main.ts so the diagnostic handler can ask too. */+let cachedChannel: InstallChannel | null = null;++export function getInstallChannel(): InstallChannel {+ if (cachedChannel === null) cachedChannel = classifyInstall(probeInstall());+ return cachedChannel;+}+export function probeInstall(): InstallProbe {return {platform: process.platform,diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.tsindex aa5892f69..958a7031e 100644--- a/electron/ipc/handlers.ts+++ b/electron/ipc/handlers.ts@@ -54,6 +54,7 @@ import { DocumentService } from "../ai-edition/document-service";import { LlmConfigStore } from "../ai-edition/llm-config-store";import { mainLogBuffer } from "../diagnostics/main-log-buffer";import { mainT } from "../i18n";+import { getInstallChannel } from "../install-channel";import { RECORDINGS_DIR } from "../main";import { type AudioPeaksResult, getAudioPeaks } from "../media/audioPeaks";import {@@ -4038,6 +4039,10 @@ export function registerIpcHandlers(appVersion: app.getVersion(),platform: process.platform,arch: process.arch,+ // The same fact the About box leads with, and for the same reason: it is what+ // explains why a copy does or does not offer an update check. This file is the+ // artifact users actually attach, so it must not be the one that omits it.+ channel: getInstallChannel(),osRelease: os.release(),osVersion: os.version(),totalMemoryMB: Math.round(os.totalmem() / 1024 / 1024),diff --git a/electron/main.ts b/electron/main.tsindex 0abac41ea..e7e70da09 100644--- a/electron/main.ts+++ b/electron/main.ts@@ -16,12 +16,19 @@ import {Tray,} from "electron";import { ShortcutBinding } from "../src/lib/shortcuts";-import { type AboutFacts, COPYRIGHT, formatAboutDetail } from "./about";+import {+ type AboutFacts,+ COPYRIGHT,+ formatAboutDetail,+ PRODUCT_NAME,+ usesNativeAboutPanel,+} from "./about";import {blockedFromInstalling,checkForSelfUpdate,downloadSelfUpdate,installSelfUpdate,+ type UpdateOutcome,} from "./auto-updater";import { parseCliArgs } from "./cli/args";import { runCli } from "./cli/cliMain";@@ -32,12 +39,7 @@ import {unregisterAllGlobalShortcuts,} from "./globalShortcut";import { mainT, setMainLocale } from "./i18n";-import {- classifyInstall,- type InstallChannel,- platformOwnsUpdates,- probeInstall,-} from "./install-channel";+import { getInstallChannel, offersUpdateCheck } from "./install-channel";import { getSelectedDesktopSource, registerIpcHandlers } from "./ipc/handlers";import { installMainProcessErrorGuards } from "./main-process-errors";import { registerSttIpc, shutdownStt } from "./stt";@@ -393,21 +395,34 @@ function getTrayIcon(filename: string, size: number) {}let updateCheckInFlight = false;-let installChannel: InstallChannel | null = null;/** Aborted on quit so a pending check cannot outlive the app and pop a dialog on the way out —* or reject into `main-process-errors`, which re-throws and would take the process with it. */let updateCheckAbort: AbortController | null = null;-function getInstallChannel(): InstallChannel {- if (installChannel === null) installChannel = classifyInstall(probeInstall());- return installChannel;-}-/** Every update affordance in the app keys off this one answer, so that the rule in* install-channel.ts — a Store/Flathub/Snap/Nix copy is offered nothing at all, not even a- * disabled item — cannot be asked two different ways by the menu, the tray and the HUD. */+ * disabled item — cannot be asked two different ways by the menu, the tray and the HUD.+ *+ * Recording is part of the same answer. The tray used to enforce it structurally — its+ * recording template holds nothing but "Stop Recording" — but the app and Help menus are+ * built once and would otherwise stay live mid-take, and `blockedFromInstalling` only vetoes+ * the install, i.e. after a 240 MB download has already competed with the encoder. Every+ * surface is rebuilt when the flag flips (see `setupApplicationMenu`/`updateTrayMenu`). */function canOfferUpdateCheck(): boolean {- return !platformOwnsUpdates(getInstallChannel());+ return offersUpdateCheck(getInstallChannel(), { recording: isRecording });+}++/** Message boxes must be owned by a window. The HUD is `alwaysOnTop` and `skipTaskbar`+ * (electron/windows.ts), so an unowned dialog opens *behind* it on Windows and most Linux+ * WMs, with no taskbar entry to recover it — the user sees a button flash and nothing else.+ * Mirrors what ipc/handlers.ts already does for its own dialogs. */+function showMessageBox(options: Electron.MessageBoxOptions) {+ const visible = (win: BrowserWindow | null) =>+ win && !win.isDestroyed() && win.isVisible() ? win : null;+ // A modal owned by a hidden window may never be drawn, so an unowned dialog is the safer+ // fallback when the HUD has been closed to the tray.+ const parent = visible(BrowserWindow.getFocusedWindow()) ?? visible(mainWindow);+ return parent ? dialog.showMessageBox(parent, options) : dialog.showMessageBox(options);}function aboutFacts(): AboutFacts {@@ -426,10 +441,10 @@ function aboutFacts(): AboutFacts {* is the window its users expect; this is the only chance to put our facts in it. Nothing* here is translated, so it needs no re-run when the locale changes. */function configureAboutPanel() {- if (process.platform !== "darwin") return;+ if (!usesNativeAboutPanel(process.platform)) return;const facts = aboutFacts();app.setAboutPanelOptions({- applicationName: app.name,+ applicationName: PRODUCT_NAME,applicationVersion: facts.version,// Rendered in parentheses after the version, where a build number would go. The install// channel is worth more there than a second copy of the version.@@ -445,8 +460,8 @@ function configureAboutPanel() {async function showAboutDialog() {const facts = aboutFacts();const detail = `${formatAboutDetail(facts)}\n${COPYRIGHT}`;- const heading = `${app.name} ${facts.version}`;- const choice = await dialog.showMessageBox({+ const heading = `${PRODUCT_NAME} ${facts.version}`;+ const choice = await showMessageBox({type: "info",title: mainT("common", "actions.about") || "About OpenScreen",message: heading,@@ -485,9 +500,9 @@ let isRecording = false;async function downloadAndInstall(latestVersion: string) {const downloaded = await downloadSelfUpdate();if (downloaded.kind === "failed") {- await dialog.showMessageBox({+ await showMessageBox({type: "error",- title: app.name,+ title: PRODUCT_NAME,// Not `updates.failed`: the CHECK succeeded — that is how we got here — and telling// the user we could not check for updates sends them looking in the wrong place.message: mainT("common", "updates.downloadFailed"),@@ -504,9 +519,9 @@ async function downloadAndInstall(latestVersion: string) {platform: process.platform,});if (blocked) {- await dialog.showMessageBox({+ await showMessageBox({type: "info",- title: app.name,+ title: PRODUCT_NAME,message: mainT("common",blocked === "recording" ? "updates.blockedRecording" : "updates.blockedLocation",@@ -515,9 +530,9 @@ async function downloadAndInstall(latestVersion: string) {return;}- const restart = await dialog.showMessageBox({+ const restart = await showMessageBox({type: "info",- title: app.name,+ title: PRODUCT_NAME,message: mainT("common", "updates.readyToInstall", { latestVersion }),buttons: [mainT("common", "actions.restartNow") || "Restart Now",@@ -533,16 +548,30 @@ async function downloadAndInstall(latestVersion: string) {* that answer leads to. The HUD's button waits on it to drop its "Checking…" label, and must* not be left spinning behind a dialog the user walked away from, or behind a 240 MB* download they approved. */+/** `checkForSelfUpdate` accepts no signal and no timeout, so a stalled update feed (corporate+ * proxy, CDN blackhole) hangs it forever. Unbounded, that would leave `checkForUpdates`'+ * `finally` unreachable and `updateCheckInFlight` latched true for the rest of the session,+ * silently turning every later check — menu, tray and HUD — into a no-op. */+async function probeSelfUpdate(): Promise<UpdateOutcome> {+ let timer: NodeJS.Timeout | undefined;+ const timeout = new Promise<UpdateOutcome>((resolve) => {+ timer = setTimeout(+ () => resolve({ kind: "failed", error: new Error("self-update probe timed out") }),+ 30_000,+ );+ timer.unref?.();+ });+ try {+ return await Promise.race([checkForSelfUpdate(getInstallChannel()), timeout]);+ } finally {+ if (timer) clearTimeout(timer);+ }+}+async function checkForUpdates(onVerdict?: () => void) {- let verdictReported = false;- const reportVerdict = () => {- if (verdictReported) return;- verdictReported = true;- onVerdict?.();- };if (updateCheckInFlight) {// Another check owns the dialogs; this caller has nothing left to wait for.- reportVerdict();+ onVerdict?.();return;}updateCheckInFlight = true;@@ -554,11 +583,10 @@ async function checkForUpdates(onVerdict?: () => void) {fetchLatest: (url, init) => net.fetch(url, init),signal,});- reportVerdict();if (result.kind === "current") {- await dialog.showMessageBox({+ await showMessageBox({type: "info",- title: app.name,+ title: PRODUCT_NAME,message: mainT("common", "updates.current", {currentVersion: result.currentVersion,}),@@ -570,7 +598,7 @@ async function checkForUpdates(onVerdict?: () => void) {// payload, and every macOS install predating Developer ID signing, which Squirrel can// never update — can only be pointed at the download page. Ask the updater first so the// buttons offered match what this install can actually do.- const selfUpdate = await checkForSelfUpdate(getInstallChannel());+ const selfUpdate = await probeSelfUpdate();const canSelfUpdate = selfUpdate.kind === "downloaded";if (selfUpdate.kind === "failed") {// A release published before the update feeds existed has no latest*.yml. Not worth a@@ -581,9 +609,9 @@ async function checkForUpdates(onVerdict?: () => void) {});}- const choice = await dialog.showMessageBox({+ const choice = await showMessageBox({type: "info",- title: app.name,+ title: PRODUCT_NAME,message: mainT("common", "updates.available", {currentVersion: result.currentVersion,latestVersion: result.latestVersion,@@ -604,44 +632,26 @@ async function checkForUpdates(onVerdict?: () => void) {}await downloadAndInstall(result.latestVersion);} catch (error) {- reportVerdict();// Quitting is not a failure, and the app is already on its way out — there is nothing// left to show the dialog on.if (signal.aborted && updateCheckAbort?.signal.aborted) return;- await dialog.showMessageBox({+ await showMessageBox({type: "error",- title: app.name,+ title: PRODUCT_NAME,message: mainT("common", "updates.failed"),detail: error instanceof Error ? error.message : String(error),});} finally {- // Belt and braces: a throw before the verdict exists must not strand the caller.- reportVerdict();updateCheckInFlight = false;updateCheckAbort = null;+ // Reported here, not the moment the release lookup returns. Until this point+ // `updateCheckInFlight` is still set, so a caller told "done" early re-enables a+ // button whose very next click hits the guard above and does nothing at all — no+ // dialog, no error, nothing the user can see.+ onVerdict?.();}}-// The HUD's settings panel shows the running version and, where this copy owns its updates,-// runs the same check the menu does. Registered here rather than in ipc/handlers.ts because-// this is where the check and the install channel already live.-ipcMain.handle("get-app-info", () => ({- version: app.getVersion(),- canCheckForUpdates: canOfferUpdateCheck(),-}));--ipcMain.handle("check-for-updates", async () => {- // The renderer hides the button on a package-manager channel. A renderer is not where that- // rule gets to be enforced.- if (!canOfferUpdateCheck()) return;- await new Promise<void>((resolve) => {- checkForUpdates(resolve).catch((error) => {- console.error("[updates] check failed", error);- resolve();- });- });-});-function updateTrayMenu(recording: boolean = false) {if (!tray) return;const trayIcon = recording ? recordingTrayIcon : defaultTrayIcon;@@ -649,7 +659,7 @@ function updateTrayMenu(recording: boolean = false) {? mainT("common", "actions.recordingStatus", {source: selectedSourceName,}) || `Recording: ${selectedSourceName}`- : "OpenScreen";+ : PRODUCT_NAME;const menuTemplate = recording? [{@@ -679,6 +689,20 @@ function updateTrayMenu(recording: boolean = false) {},]: []),+ // The About box's other homes are menu-bar items, and no window this app creates+ // shows a menu bar: the HUD is frameless (electron/windows.ts), and the editor and+ // notes windows call setAutoHideMenuBar(true) on Windows and Linux. Without this+ // entry the box — and the Copy button that is the point of building it ourselves —+ // is reachable there only by opening the editor and holding Alt.+ isMac+ ? {+ role: "about" as const,+ label: mainT("common", "actions.about") || "About OpenScreen",+ }+ : {+ label: mainT("common", "actions.about") || "About OpenScreen",+ click: runAboutDialog,+ },{ type: "separator" as const },{label: mainT("common", "actions.quit") || "Quit",@@ -972,6 +996,28 @@ appReady?.then(async () => {return { success };});+ // The HUD's settings panel shows the running version and, where this copy owns its updates,+ // runs the same check the menu does. Registered here rather than in ipc/handlers.ts because+ // this is where the check and the install channel already live — but inside `appReady`, like+ // every other handler in this file: at module scope they would also be live in the headless+ // CLI boot path and in a losing second instance that is on its way to app.quit().+ ipcMain.handle("get-app-info", () => ({+ version: app.getVersion(),+ canCheckForUpdates: canOfferUpdateCheck(),+ }));++ ipcMain.handle("check-for-updates", async () => {+ // The renderer hides the button on a package-manager channel, and while recording. A+ // renderer is not where those rules get to be enforced.+ if (!canOfferUpdateCheck()) return;+ await new Promise<void>((resolve) => {+ checkForUpdates(resolve).catch((error) => {+ console.error("[updates] check failed", error);+ resolve();+ });+ });+ });+createTray();updateTrayMenu();configureAboutPanel();@@ -1002,6 +1048,9 @@ appReady?.then(async () => {isRecording = recording;if (!tray) createTray();updateTrayMenu(recording);+ // `canOfferUpdateCheck()` now answers "not mid-take" too, and the app/Help menus are+ // built once at startup — without this they keep offering the check during a take.+ setupApplicationMenu();if (!recording) {showMainWindow();}diff --git a/src/components/launch/LaunchWindow.test.tsx b/src/components/launch/LaunchWindow.test.tsxindex 881e02f1d..cbf02921e 100644--- a/src/components/launch/LaunchWindow.test.tsx+++ b/src/components/launch/LaunchWindow.test.tsx@@ -165,7 +165,7 @@ vi.mock("@/contexts/I18nContext", () => ({"deviceSettings.previewUnavailable": "Preview unavailable","deviceSettings.about": "About","deviceSettings.version": "Version {{version}}",- "deviceSettings.checkForUpdates": "Check for updates",+ "actions.checkForUpdates": "Check for updates","deviceSettings.checkingForUpdates": "Checking…","audio.inputDevice": "Input device","webcam.cameraDevice": "Camera device",diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsxindex d14e9de64..a1fe8a284 100644--- a/src/components/launch/LaunchWindow.tsx+++ b/src/components/launch/LaunchWindow.tsx@@ -62,6 +62,9 @@ function getAvailableScreenHeight(): number {/** Launches the floating recording HUD and its recorder controls. */export function LaunchWindow() {const t = useScopedT("launch");+ // The update-check label is shared with the app menu and the tray, which read it from+ // `common`. A second copy under `launch` drifted from it in en and ar before it ever shipped.+ const tCommon = useScopedT("common");const {locale,setLocale,@@ -884,10 +887,10 @@ export function LaunchWindow() {preview: t("deviceSettings.preview"),previewUnavailable: t("deviceSettings.previewUnavailable"),about: t("deviceSettings.about"),- checkForUpdates: t("deviceSettings.checkForUpdates"),+ checkForUpdates: tCommon("actions.checkForUpdates"),checkingForUpdates: t("deviceSettings.checkingForUpdates"),}),- [t],+ [t, tCommon],);const versionLabel = appInfo ? t("deviceSettings.version", { version: appInfo.version }) : null;diff --git a/src/i18n/locales/ar/launch.json b/src/i18n/locales/ar/launch.jsonindex f738186cf..0198af382 100644--- a/src/i18n/locales/ar/launch.json+++ b/src/i18n/locales/ar/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "المعاينة غير متاحة","about": "حول","version": "الإصدار {{version}}",- "checkForUpdates": "التحقق من التحديثات","checkingForUpdates": "جارٍ التحقق…"}}diff --git a/src/i18n/locales/en/launch.json b/src/i18n/locales/en/launch.jsonindex c10e47702..ad2385c02 100644--- a/src/i18n/locales/en/launch.json+++ b/src/i18n/locales/en/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Preview unavailable","about": "About","version": "Version {{version}}",- "checkForUpdates": "Check for updates","checkingForUpdates": "Checking…"}}diff --git a/src/i18n/locales/es/launch.json b/src/i18n/locales/es/launch.jsonindex cac49ea83..7a2c92a55 100644--- a/src/i18n/locales/es/launch.json+++ b/src/i18n/locales/es/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Vista previa no disponible","about": "Acerca de","version": "Versión {{version}}",- "checkForUpdates": "Buscar actualizaciones","checkingForUpdates": "Buscando…"}}diff --git a/src/i18n/locales/fr/launch.json b/src/i18n/locales/fr/launch.jsonindex 4df8c21a5..858fd58f1 100644--- a/src/i18n/locales/fr/launch.json+++ b/src/i18n/locales/fr/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Aperçu indisponible","about": "À propos","version": "Version {{version}}",- "checkForUpdates": "Rechercher des mises à jour","checkingForUpdates": "Recherche…"}}diff --git a/src/i18n/locales/it/launch.json b/src/i18n/locales/it/launch.jsonindex b8bdd01a2..ed5088d67 100644--- a/src/i18n/locales/it/launch.json+++ b/src/i18n/locales/it/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Anteprima non disponibile","about": "Info","version": "Versione {{version}}",- "checkForUpdates": "Controlla aggiornamenti","checkingForUpdates": "Controllo…"}}diff --git a/src/i18n/locales/ja-JP/launch.json b/src/i18n/locales/ja-JP/launch.jsonindex 4bfb3795c..ab9cebbd5 100644--- a/src/i18n/locales/ja-JP/launch.json+++ b/src/i18n/locales/ja-JP/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "プレビューを利用できません","about": "情報","version": "バージョン {{version}}",- "checkForUpdates": "アップデートを確認","checkingForUpdates": "確認中…"}}diff --git a/src/i18n/locales/ko-KR/launch.json b/src/i18n/locales/ko-KR/launch.jsonindex d8519f468..192089224 100644--- a/src/i18n/locales/ko-KR/launch.json+++ b/src/i18n/locales/ko-KR/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "미리 보기를 사용할 수 없습니다","about": "정보","version": "버전 {{version}}",- "checkForUpdates": "업데이트 확인","checkingForUpdates": "확인 중…"}}diff --git a/src/i18n/locales/pt-BR/launch.json b/src/i18n/locales/pt-BR/launch.jsonindex fd586a4a4..4d1fc9270 100644--- a/src/i18n/locales/pt-BR/launch.json+++ b/src/i18n/locales/pt-BR/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Pré-visualização indisponível","about": "Sobre","version": "Versão {{version}}",- "checkForUpdates": "Verificar atualizações","checkingForUpdates": "Verificando…"}}diff --git a/src/i18n/locales/ru/launch.json b/src/i18n/locales/ru/launch.jsonindex 6bebad776..0af9564c4 100644--- a/src/i18n/locales/ru/launch.json+++ b/src/i18n/locales/ru/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Предпросмотр недоступен","about": "О программе","version": "Версия {{version}}",- "checkForUpdates": "Проверить обновления","checkingForUpdates": "Проверка…"}}diff --git a/src/i18n/locales/tr/launch.json b/src/i18n/locales/tr/launch.jsonindex 0d6812ac1..632709c82 100644--- a/src/i18n/locales/tr/launch.json+++ b/src/i18n/locales/tr/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Önizleme kullanılamıyor","about": "Hakkında","version": "Sürüm {{version}}",- "checkForUpdates": "Güncellemeleri denetle","checkingForUpdates": "Denetleniyor…"}}diff --git a/src/i18n/locales/vi/launch.json b/src/i18n/locales/vi/launch.jsonindex e747af16c..98405bf99 100644--- a/src/i18n/locales/vi/launch.json+++ b/src/i18n/locales/vi/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "Không thể xem trước","about": "Giới thiệu","version": "Phiên bản {{version}}",- "checkForUpdates": "Kiểm tra bản cập nhật","checkingForUpdates": "Đang kiểm tra…"}}diff --git a/src/i18n/locales/zh-CN/launch.json b/src/i18n/locales/zh-CN/launch.jsonindex 84025226a..e7efe8eec 100644--- a/src/i18n/locales/zh-CN/launch.json+++ b/src/i18n/locales/zh-CN/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "预览不可用","about": "关于","version": "版本 {{version}}",- "checkForUpdates": "检查更新","checkingForUpdates": "正在检查…"}}diff --git a/src/i18n/locales/zh-TW/launch.json b/src/i18n/locales/zh-TW/launch.jsonindex c167a4699..025e422e7 100644--- a/src/i18n/locales/zh-TW/launch.json+++ b/src/i18n/locales/zh-TW/launch.json@@ -94,7 +94,6 @@"previewUnavailable": "預覽無法使用","about": "關於","version": "版本 {{version}}",- "checkForUpdates": "檢查更新","checkingForUpdates": "檢查中…"}}diff --git a/src/native/browserShim.ts b/src/native/browserShim.tsindex 17a5e315a..907faf50b 100644--- a/src/native/browserShim.ts+++ b/src/native/browserShim.ts@@ -124,6 +124,10 @@ function createShimElectronAPI() {onRequestSaveBeforeClose: () => () => undefined,loadProjectFileFromPath: () => Promise.resolve({ success: false, canceled: true }),getPathForFile: () => "",+ // Browser mode has no main process to ask, and no installer that could update it. A+ // version still has to come back or the HUD's About block never renders at all.+ getAppInfo: () => Promise.resolve({ version: "0.0.0-browser", canCheckForUpdates: false }),+ checkForUpdates: () => Promise.resolve(),getSources: () => Promise.resolve(SHIM_SOURCES),selectSource: (source: ShimDesktopSource) => {shimSelectedSource = source;diff --git a/technical-documentation/testing/manual-e2e-checklist.md b/technical-documentation/testing/manual-e2e-checklist.mdindex 454afc800..18b9d1425 100644--- a/technical-documentation/testing/manual-e2e-checklist.md+++ b/technical-documentation/testing/manual-e2e-checklist.md@@ -326,12 +326,15 @@ The agent may only call the fixed tool set in [ai-agent.md](../architecture/ai-a### App menu, About, and updates- [ ] On macOS, open the application menu and confirm About OpenScreen is followed by Check for Updates.-- [ ] On Windows and Linux, open the Help menu and confirm it lists Check for Updates and About OpenScreen.+- [ ] On Windows and Linux, right-click the tray icon and confirm it lists Check for Updates and About OpenScreen. The tray is the only surface that is reachable by default there: the HUD is frameless and the editor and notes windows auto-hide their menu bar, so the Help menu appears only while Alt is held over one of those two windows.+- [ ] On Windows and Linux, open the editor, hold Alt, and confirm the Help menu lists Check for Updates and About OpenScreen.- [ ] Open About and confirm it names the running version, the Electron/Chromium/Node versions, and the install channel.+- [ ] Confirm the About box opens in front of the HUD rather than behind it.- [ ] On Windows and Linux, press Copy in the About box and confirm the clipboard holds that same block.- [ ] Open the HUD's device-settings panel and confirm its About row reports the same version.- [ ] Run Check for Updates from the menu, from the tray, and from the HUD panel, and confirm each reaches the same result dialog.-- [ ] Start a second check while one is still running and confirm no second dialog appears.+- [ ] Start a second check while one is still running and confirm the HUD button stays disabled and reads "Checking…" until the first check's dialogs are done, rather than re-enabling into a click that does nothing.+- [ ] Start a recording, then confirm Check for Updates is gone from the app menu, the Help menu and the tray for as long as the take runs, and returns when it stops.- [ ] On a Microsoft Store, Flathub, Snap, or Nix install, confirm no update affordance appears in the menu, the tray, or the HUD panel, while the version still shows.### New effects and controls — v1.8.0