[bug] Window and Help menu are not working on MacOS
Describe the bug
- When setting up the
WindoworHelpmenu on macOS the default menu items are missing -> For theHelpmenu that would be the search bar and for the theWindowmenu that would be theMove & ResizeandFull Screen Tileitems in the menu. - Also, the documentation says that the
Helpmenu should be recognized automatically when namedHelp, but it is not.- https://v2.tauri.app/reference/javascript/api/namespacemenu/#setashelpmenufornsapp
- Related but from the JS side: https://github.com/tauri-apps/tauri/issues/12652
Reproduction
This is how I setup the menu:
let report_issue = MenuItem::with_id(
app,
"report-issue",
"Report Issue...",
true,
Some("Ctrl+F"),
)?;
let help_submenu = SubmenuBuilder::new(app, "Help") // also does not work when setting with tauri::menu::HELP_SUBMENU_ID
.item(&report_issue)
.build()?;
let window = SubmenuBuilder::with_id(app, WINDOW_SUBMENU_ID, "Window")
.build()?; // No Move & Resize and Full Screen Tile menu items (does not work)
let menu = MenuBuilder::new(app)
.items(&[&help_submenu, &window])
.build()?;
Ok(menu)
Full tauri info output
[✔] Environment
- OS: Mac OS 15.5.0 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.87.0 (17067e9ac 2025-05-09)
✔ cargo: 1.87.0 (99624be96 2025-05-06)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 22.14.0
- npm: 11.3.0
- bun: 1.2.15
[-] Packages
- tauri 🦀: 2.5.1
- tauri-build 🦀: 2.2.0
- wry 🦀: 0.51.2
- tao 🦀: 0.33.0
- @tauri-apps/api : 2.5.0
- @tauri-apps/cli : 2.5.0
[-] Plugins
- tauri-plugin-opener 🦀: 2.2.7
- @tauri-apps/plugin-opener : 2.2.7
- tauri-plugin-dialog 🦀: 2.2.2
- @tauri-apps/plugin-dialog : 2.2.2
- tauri-plugin-fs 🦀: 2.3.0
- @tauri-apps/plugin-fs : not installed!
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite
@FabianLars I just tested it with the default menu (when creating a new app), and it doesn't work with that either. If you point me in the right direction, I might be able to debug or even PR a fix (would love to contribute to this awesome project)
I have no pointers whatsoever but trying to reproduce it in https://github.com/tauri-apps/muda is probably a good first step.
Ah thanks. Maybe this issue needs to be moved there then.
Assuming it's an issue in muda and not just tauri, yes.
/upstream tauri-apps/muda
Upstream issue at https://github.com/tauri-apps/muda/issues/301 has been closed.
we already had an upstream issue https://github.com/tauri-apps/muda/issues/263