https://bugs.kde.org/show_bug.cgi?id=424485
Bug ID: 424485 Summary: GDbus-DBusMenu-Proxy does not work for GTK Wayland apps Product: plasmashell Version: 5.19.3 Platform: Debian unstable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: gmenu-dbusmenu-proxy Assignee: k...@privat.broulik.de Reporter: alexander-kde@ninetailed.ninja CC: plasma-b...@kde.org Target Milestone: 1.0 SUMMARY When running a GTK application using GMenu to export its menus on Wayland, GDBus-DBbusMenu-Proxy will not detect the menu exported by the application and hence will not publish an equivalent DBusMenu representation to com.canonical.AppMenu.Registrar. STEPS TO REPRODUCE 1. Find any GTK application using `gtk_application_set_menubar(GMenu*)` to set its default application menu and hence exporting it onto D-Bus 2. Launch the application under Wayland 3. Check that the application publishes `${APP_ID_WITH_SLASHES}/menus/menubar` on D-Bus with the respective menu items OBSERVED RESULT The application's menu will not be detected at all by GDBus-DBbusMenu-Proxy and hence no Global Menu will be available. EXPECTED RESULT GDBus-DBbusMenu-Proxy should detect the menu and publish an equivalent D-Bus menu representation. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian unstable with KDE Neon user for Ubuntu focal KDE Plasma Version: 4:5.19.3-0xneon+20.04+focal+build5 KDE Frameworks Version: 5.72.0-0xneon+20.04+focal+build7 Qt Version: 5.14.2+dfsg-0+xneon+20.04+focal+build11 ADDITIONAL INFORMATION The obvious reason for why it doesn't work is because it only probes X11 attributes. Looking at https://wiki.gnome.org/Projects/GLib/GApplication/DBusAPI it is also not in any way obvious to me how auto-discovery of the menu information on Wayland would work at all? If there is some way to match the application window with the GtkApplication's unique D-Bus name it should work, but I'm not sure such a facility exists? -- You are receiving this mail because: You are watching all bug changes.