Bug 442646 - GTK2 applications do not export menus to the applet on Wayland
Summary: GTK2 applications do not export menus to the applet on Wayland
Status: REPORTED
Alias: None
Product: kded-appmenu
Classification: Frameworks and Libraries
Component: menu exporter (show other bugs)
Version: 5.22.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-18 12:01 UTC by Szymon
Modified: 2021-12-22 20:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon 2021-09-18 12:01:36 UTC
SUMMARY
Some 3rd applications like : inkscape, sublime text, sublime merge and many others doesn't work with globalmenu in Wayland platform. I think the problem is due to the presence of GTK2. But I'm not able to verify that. Menus from GTK3 applications export normally.



STEPS TO REPRODUCE
1. Run KDE on Wayland Session
2. Make sure that Globalmenu applet is on Panel
3. Run Application like Inkscape, Sublime Text.

OBSERVED RESULT
All of the above mentioned applications run correctly on Xorg.


EXPECTED RESULT
Application menu on the panel.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.14.5
(available in About System)
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 phrxmd 2021-12-22 20:04:31 UTC
I cannot reproduce this - on my Wayland system GTK3 apps like Inkscape, GLabels, Firefox or GIMP don't show a menu at all, this is bug 424485. 

The issue is with Wayland-native GTK3 apps. If I start the same GTK3 app in XWayland, e.g. with `GDK_BACKEND=x11 inkscape`, the menu works. GTK2 does not support Wayland apps always run in XWayland, which is why the menu works for them too.