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): open the HUD without waiting for the microphone prompt
Etienne Lescot0c2ce8270724
diff --git a/electron/main.ts b/electron/main.tsindex a0cb07dca..1fa013935 100644--- a/electron/main.ts+++ b/electron/main.ts@@ -590,10 +590,21 @@ appReady?.then(async () => {// Request mic permission now. Screen Recording is requested lazily from the// source-picker action so its prompt isn't hidden behind the selector window.+ //+ // NOT awaited, on purpose. `askForMediaAccess` resolves only once the user+ // answers the modal TCC prompt, and `createWindow()` is 70 lines below this in+ // the same async block — so on a Mac where the microphone is still+ // `not-determined` (every first run, and every fresh dev machine) the app+ // showed a permission dialog with NO window behind it and created the HUD only+ // after it was dismissed. Nothing between here and `createWindow()` needs the+ // answer: the recorder re-checks the status when the user actually arms the mic.if (process.platform === "darwin") {const micStatus = systemPreferences.getMediaAccessStatus("microphone");if (micStatus !== "granted") {- await systemPreferences.askForMediaAccess("microphone");+ systemPreferences+ .askForMediaAccess("microphone")+ .then((granted) => console.info(`[permissions] microphone granted=${granted}`))+ .catch((error) => console.warn("[permissions] microphone request failed:", error));}}