fix(desktop): Linux falls back to Electron's default application menu (File/Edit/View/Window not wired to the app)
Summary
Menu.setApplicationMenu() is only called for win32 and darwin in frontend/src/main.ts (around lines 483-505). There is no Linux branch, so on Linux the app falls through to Electron's built-in default application menu template (File / Edit / View / Window / Help).
That default menu isn't wired to this app's actual functionality — it's Electron's generic stock template (Reload, Toggle DevTools, generic Cut/Copy/Paste/Undo/Redo roles bound to whatever has focus, zoom, minimize, etc.), not the app's own custom keybindings/actions. To a Linux user it looks like a menu bar that "does nothing," since none of the entries reflect real app behavior.
Relevant code
// frontend/src/main.ts (~line 483)
if (process.platform === "win32") {
Menu.setApplicationMenu(buildWindowsAppMenu());
mainWindow.setMenuBarVisibility(false);
} else if (process.platform === "darwin") {
Menu.setApplicationMenu(
Menu.buildFromTemplate(
buildMacAppMenuTemplate(() => { /* ... */ }),
),
);
}
// no else branch for linux — Electron's default menu applies
Windows already solves this the right way: it installs a role-based menu (buildWindowsAppMenuTemplate) so accelerators keep working, then calls mainWindow.setMenuBarVisibility(false) to hide the visible strip (Alt still reveals it). Linux has neither the custom menu nor the hide call.
Suggested fix
Add a Linux branch that mirrors the Windows path: build (or reuse) a role-based menu template appropriate for Linux, call Menu.setApplicationMenu(...), and hide the bar with mainWindow.setMenuBarVisibility(false) (or set autoHideMenuBar: true on the BrowserWindow at construction, consistent with the Windows BrowserWindow options at ~line 458) so the app doesn't expose Electron's generic, non-functional default menu.
Related
While investigating this, found a second, likely more impactful gap worth a separate issue: Linux never enables the system tray (isTrayEnabled() in frontend/src/main/tray-lifecycle.ts hard-excludes non-darwin), and window-all-closed calls app.quit() on Linux — so closing the window quits the app entirely instead of minimizing to tray, unlike macOS. Happy to file that separately if useful.