Bug 422969

Summary: Global menu: GTK3 apps has wrong menu item types
Product: [Plasma] plasmashell Reporter: hexchain <kde>
Component: Global Menu widgetAssignee: Kai Uwe Broulik <kde>
Status: REPORTED ---    
Severity: normal CC: kdedev, mvourlakos, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.19.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=436463
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Audacity in-app menu (checkbox items)
Audacity global menu

Description hexchain 2020-06-14 13:19:10 UTC
SUMMARY
The "Global menu" widget sometimes shows wrong menu item types for menus exported from GTK3 apps with appmenu-gtk-module.


STEPS TO REPRODUCE
1. Open a GTK3 app that has a menu (e.g. adriconf, a DRI configurator)
2. Navigate to "Application" -> "<driver name>" (should be the last item, e.g. iris, i965)
3. Look at the submenu

OBSERVED RESULT
The submenu is a long list of "regular" items, with only one of them being actionable.

EXPECTED RESULT
The submenu should be a list of radio options.

Switching to another window that has a menu (e.g. Telegram or Chromium) and back might correct this.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
OS Type: 64-bit

ADDITIONAL INFORMATION
It seems that gmenu-dbusmenu-proxy is not doing the right thing:

% xprop | grep _KDE_NET_WM_APPMENU_OBJECT_PATH
_KDE_NET_WM_APPMENU_OBJECT_PATH(STRING) = "/MenuBar/15"

# Get the top level menu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15 com.canonical.dbusmenu GetLayout iias 0 1 0
u(ia{sv}av) 1 0 1 "children-display" s "submenu" 4 (ia{sv}av) 1 4 "enabled" b true "label" s "" "type" s "separator" "visible" b true 0 (ia{sv}av) 2001 4 "children-display" s "submenu" "enabled" b true "label" s "File" "visible" b true 0 (ia{sv}av) 2002 4 "children-display" s "submenu" "enabled" b true "label" s "Application" "visible" b true 0 (ia{sv}av) 2003 5 "children-display" s "submenu" "enabled" b true "icon-name" s "help-contents" "label" s "Help" "visible" b true 0

# Get the "Application" menu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15 com.canonical.dbusmenu GetLayout iias 2002 1 0
u(ia{sv}av) 1 2000000 1 "children-display" s "submenu" 4 (ia{sv}av) 2000001 4 "enabled" b true "label" s "" "type" s "separator" "visible" b true 0 (ia{sv}av) 2001001 4 "enabled" b true "label" s "Add new" "shortcut" aas 1 2 "Control" "n" "visible" b true 0 (ia{sv}av) 2001002 4 "enabled" b true "label" s "Remove current Application" "shortcut" aas 1 2 "Control" "d" "visible" b true 0 (ia{sv}av) 2001003 4 "children-display" s "submenu" "enabled" b true "label" s "iris" "visible" b true 0

# Get the submenu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15 com.canonical.dbusmenu GetLayout iias 2001003 1 0
u(ia{sv}av) 1 4000000 1 "children-display" s "submenu" 130 (ia{sv}av) 4000001 4 "enabled" b true "label" s "" "type" s "separator" "visible" b true 0 (ia{sv}av) 4001001 3 "enabled" b false "label" s "7 Days To Die (32-bit)" "visible" b true 0 (ia{sv}av) 4001002 3 "enabled" b false "label" s "7 Days To Die (64-bit)" "visible" b true 0 (ia{sv}av) 4001003 3 "enabled" b false "label" s "Alien Isolation" "visible" b true 0 (ia{sv}av) 4001004 3 "enabled" b false "label" s "American Truck Simulator" "visible" b true 0 (ia{sv}av) 4001005 3 "enabled" b false "label"...

Notice that the items in the submenu do not identify them as "radio".
Comment 1 Nate Graham 2023-09-19 20:21:43 UTC
Hello and thank you again for the bug report! Unfortunately we were not able to address it yet, nor even manage to reproduce the issue ourselves. Can we ask you to please check if this issue is still happening with Plasma 5.27?

If it is, please change the status to REPORTED. Thanks a lot!
Comment 2 Bug Janitor Service 2023-10-04 03:46:41 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 hexchain 2023-10-05 15:01:13 UTC
Created attachment 162099 [details]
Audacity in-app menu (checkbox items)
Comment 4 hexchain 2023-10-05 15:01:56 UTC
Created attachment 162100 [details]
Audacity global menu
Comment 5 hexchain 2023-10-05 15:03:14 UTC
I think it still happens in 5.27, please see the attached screenshots.

GTK global menu doesn't quite work under Wayland so Audacity is launched with GDK_BACKEND=x11.
Comment 6 TraceyC 2025-08-28 20:35:27 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Plasma 6.4.4 or later and let us know if you can still reproduce the problem? If you can, please set this report back to REPORTED. Thanks!
Comment 7 hexchain 2025-09-01 17:27:58 UTC
I think this is still an issue. Tried again with Tenacity (with GDK_BACKEND=x11) and noticed that items under the "View" -> "Toolbars" menu are wrong - they should be checkboxes but are shown as plain items in Global Menu.
Comment 8 TraceyC 2025-09-02 19:38:23 UTC
Thanks for letting us know this is still a problem
I'm not able to test this on git-master due to bug 436463 - GTK-Apps icons are not visible in the global menu

Hopefully someone else can try to reproduce.