canonical/multipass

[GUI] Quit appears to fail when called from the tray and set to ask

Open

#4,210 opened on Jul 3, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (6,956 stars) (634 forks)batch import
bughelp wantedlowmedium

Description

Describe the bug On macOS, when Multipass is configured to ask about running instances on quit (the default), clicking "Quit" on the tray icon appears to have no effect. The question is asked in the Multipass window, but won't be visible unless the Window is unobstructed or minimized.

To Reproduce

  1. Open the GUI
  2. Go to settings
  3. Set "When closing Multipass" to "Ask about running instances"
  4. Launch or start an instance and wait for it to get to running state
  5. Bring a larger window into focus (on the same screen) such that the GUI is no longer visible
  6. Click the Multipass tray icon and select "Quit"
  7. Observe no apparent reaction

Interestingly, this does not occur if the GUI is minimized: it is restored and brought into focus then.

Expected behavior I expected the GUI to always come into focus when a question is asked.

Logs Please provide logs from the daemon, see accessing logs on where to find them on your platform.

Additional info

  • OS: macOS 15.3.2
  • CPU architecture or model: x86
  • multipass version 1.16.0-rc5.3814+ga3a71f27.mac

Contributor guide