No menu when using "Default Window Controls and Menubar"

Description

When using Mailspring in KDE Plasma, choosing “Default Window Controls and Menubar” results in no way to access menus. They don’t appear in Plasma’s global menu bar, and they don’t appear in the window itself. What’s worse is that the hamburger menu is also missing, so it’s very difficult to get into settings to switch back to “Custom Window Frame and Right-hand Menu”. (I have to go to “Manage Accounts” via the left pane of the main window).

To Reproduce…

Steps to reproduce the behavior:

  1. Launch Mailspring on KDE Plasma

  2. Go to Preferences → Appearange

  3. Choose “Default Window Controls and Menubar” and restart the app

Expected Behavior

I expect the menus to either appear in the KDE Plasma global menu bar, or inside the window. Or I expect the a hamburger button that reveals the menus. Or any other mechanism to reach the menus.

Instead there is no menus anywhere that I can find.

Setup

  • OS and Version: Fedora Asahi Linux 42 (aarch64)
  • KDE Plasma Version: 6.6.2
  • KDE Frameworks Version: 6.24.0
  • Graphics Platform: Wayland
  • Installation Method: sudo dnf install mailspring...rpm
  • Mailspring Version: 1.19.0

Additional Context

The native window does work as expected when choosing “Default Window Controls and Menubar” which is why I want to use this option, whereas the window has no border when I use “Custom Window Frame and Right-hand Menu” and it looks weird.

It seems this was acknowledged and somewhat fixed in the latest release:

Hey Luke – Mailspring 1.19.1 includes improvements for Wayland session detection and now always shows the menu button on Linux (for window managers where the native menubar isn’t supported). On KDE Plasma under Wayland, the “Default Window Controls and Menubar” option was broken because the global menu integration wasn’t working as expected. The new release detects this scenario and provides a hamburger-style menu button so you’re never left without access to the menus. Please update and let me know how it goes!

Thanks @bengotow !

Unfortunately for me, the global menu bar still doesn’t work. I tried all of the options for “Window Controls and Menus” multiple times.

I also tried running from the command line to capture any errors or warnings, and this is all I got when running with “Default Window Controls and Menubar” selected.

[luke@mbp]/opt/bin% /usr/bin/mailspring 
Running database migrations
App load time: 142ms
Gtk-Message: 08:53:24.269: Failed to load module "appmenu-gtk-module"
/usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin: /lib64/libcurl.so.4: no version information available (required by /usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin)

{"error":null}
(node:517617) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `mailspring --trace-deprecation ...` to show where the warning was created)
[517617:0408/085324.384657:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:277] Unable to set image transfer function.
[517617:0408/085324.384667:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:195] Failed to populate image description for color space {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}
Manual update check (updates.getmailspring.com/check/linux/arm64/1.19.1-66f9e225/anonymous/stable) returned 204
(node:517617) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
[517617:0408/085324.883855:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:277] Unable to set image transfer function.
[517617:0408/085324.883865:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:195] Failed to populate image description for color space {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}
[517617:0408/085324.883869:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_management_surface.cc:64] Failed to get image description for color space.
[517617:0408/085324.888528:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:277] Unable to set image transfer function.
[517617:0408/085324.888543:ERROR:ui/ozone/platform/wayland/host/wayland_wp_color_manager.cc:195] Failed to populate image description for color space {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}

Two notable improvements though:

  • When using “Custom Window Frame and Right-hand Menu” the window has a drop shadow and looks much more reasonable now.
  • In all cases, it falls back to the hamburger menu so I can still access the menus

This is with version 1.19.1. The rest of my system config is still as I posted upthread. Let me know if there’s anything else I can do to troubleshoot.