tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] Window and Help menu are not working on MacOS

Open peaklabs-dev opened this issue 6 months ago • 5 comments

Describe the bug

  • When setting up the Window or Help menu on macOS the default menu items are missing -> For the Help menu that would be the search bar and for the the Window menu that would be the Move & Resize and Full Screen Tile items in the menu.
  • Also, the documentation says that the Help menu should be recognized automatically when named Help, 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

peaklabs-dev avatar Jun 11 '25 15:06 peaklabs-dev

@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)

peaklabs-dev avatar Jun 13 '25 15:06 peaklabs-dev

I have no pointers whatsoever but trying to reproduce it in https://github.com/tauri-apps/muda is probably a good first step.

FabianLars avatar Jun 13 '25 15:06 FabianLars

Ah thanks. Maybe this issue needs to be moved there then.

peaklabs-dev avatar Jun 14 '25 08:06 peaklabs-dev

Assuming it's an issue in muda and not just tauri, yes.

FabianLars avatar Jun 14 '25 09:06 FabianLars

/upstream tauri-apps/muda

FabianLars avatar Jun 14 '25 09:06 FabianLars

Upstream issue at https://github.com/tauri-apps/muda/issues/301 has been closed.

tauri-apps[bot] avatar Jun 23 '25 09:06 tauri-apps[bot]

we already had an upstream issue https://github.com/tauri-apps/muda/issues/263

FabianLars avatar Jun 23 '25 09:06 FabianLars