Bug 491954

Summary: Global Menu fails to display shortcuts for applications built with XfceGtkActionEntries
Product: [Plasma] plasmashell Reporter: Georg Schwarz <georg.schwarz>
Component: Global Menu widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, mvourlakos, nate
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Georg Schwarz 2024-08-20 21:07:41 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1.  Make sure global menu is enabled and you are using X11, not Wayland (due to bug #424485)
2.  Launch an application built with XfceGtkActionEntries such as Xfce4-Terminal 1.1.3 or Thunar 4.18.11
3.  Go through the pull-down menus in the global menu.

OBSERVED RESULT

The entries do not have shortcuts (accelerators) displayed

EXPECTED RESULT

Shortcuts (accelerators) should be displayed just as when having the menus attached to the window (i.e. when not using the global menu)


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

With older versions of those applications (e.g. Xfce4-Terminal 0.8.10 or Thunar 4.16.10), which have been build using GtkActionEntries and not XfceGtkActionEntries, the shortcuts are displayed as expected with KDE's Global Menu.

To be fair, Vala-Panel-Appmenu has the same problem (cf. https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/issues/375).
Comment 1 Georg Schwarz 2024-08-21 20:16:05 UTC
The shortcut information is not sent over dbus. It appears to me that gmenu-dbusmenu-prioxy would need to be enhanced to support XfceGtkActionEntries. Not sure how much changes this would require.
Comment 2 Nate Graham 2025-04-06 14:47:03 UTC
It appears you are correct.