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(cli): give a CLI run no application menu
Etienne Lescotc309eddda028
diff --git a/electron/cli/cliMain.ts b/electron/cli/cliMain.tsindex 0e5d9aea9..02f7254c1 100644--- a/electron/cli/cliMain.ts+++ b/electron/cli/cliMain.ts@@ -5,7 +5,7 @@import fs from "node:fs/promises";import path from "node:path";import readline from "node:readline";-import { app, BrowserWindow, ipcMain, session, systemPreferences } from "electron";+import { app, BrowserWindow, ipcMain, Menu, session, systemPreferences } from "electron";import type { CliProgressEvent, CliSourcesResult } from "../../src/lib/cliContracts";import { isDiagnosticModeEnabled } from "../diagnostics/main-log-buffer";import { getSelectedDesktopSource, registerIpcHandlers } from "../ipc/handlers";@@ -294,6 +294,11 @@ export function runCli(command: CliCommand): void {.whenReady().then(async () => {milestone("app ready");+ // No application menu. Electron installs its default one on `ready`, which is why this+ // comes after it. On macOS that menu shows whenever this hidden process comes to the+ // front, as it does while it hands a launch on to the GUI, and its Quit (Cmd+Q) would+ // end the agent's MCP server rather than anything the user knowingly started.+ Menu.setApplicationMenu(null);if (command.kind === "info") {const code = await runInfoCommand(command.projectPath, command.json === true, writeStdout);app.exit(code);