Bug 448452

Summary: Global menu broken for Wayland-native GTK applications
Product: [Plasma] plasmashell Reporter: Linus Dierheimer <Linus>
Component: Global Menu widgetAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander.huang.y, gobonja, j5lx, mvourlakos, nate, nicolas.fella, plasma-bugs, uhhadd
Priority: NOR Keywords: wayland
Version: 5.23.90   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Linus Dierheimer 2022-01-14 11:27:54 UTC
SUMMARY

After the update to the 5.24 beta, GTK apps don't seem to have a global menu anymore. The panel containing the "global menu" applet is just empty. Happens at least in latest Chrome and latest Mailspring. QT Apps work fine.

Following relevant packages are installed on top of the plasma ones: appmenu-gtk-module  libappindicator-gtk2  lib32-libappindicator-gtk2  libappindicator-gtk3  lib32-libappindicator-gtk3.

systemctl --user status appmenu-gtk-module.service:
○ appmenu-gtk-module.service - Appmenu GTK Module Environment variables
     Loaded: loaded (/usr/lib/systemd/user/appmenu-gtk-module.service; enabled; vendor preset: enabled)
     Active: inactive (dead)


STEPS TO REPRODUCE
1. Update your arch system to the latest release, with the kde-unstable repositories enabled
2. Add a global menu panel
3. Open a GTK app
4. Observe

OBSERVED RESULT

Panel is empty / global menu is missing

EXPECTED RESULT

Panel is not empty / global menu is shown

SOFTWARE/OS VERSIONS
Windows:  /
macOS: /
Linux/KDE Plasma: 5.16.0 / 5.23.90
(available in About System)
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-01-14 21:18:34 UTC
Wayland or X11? Or both?
Comment 2 Linus Dierheimer 2022-01-15 09:52:46 UTC
Wayland only.
Comment 3 Nicolas Fella 2022-01-19 00:00:31 UTC
Did this actually work before on Wayland? I remember that being an older issue
Comment 4 Linus Dierheimer 2022-01-19 09:05:52 UTC
Yes, 5.23.5 works. But it was implemented not long ago. If i had to guess i would say around 5.22.
Comment 5 Janet Blackquill 2022-01-19 09:12:08 UTC
GTK does not and has not supported our current Plasma-specific Wayland protocol for app menus. It may be possible that your GTK apps were running on XWayland under 5.23 for some reason. If you wish to force them back onto XWayland, you can set the environment variable GDK_BACKEND to xcb.

I've been working on upstreaming a cross-desktop protocol for appmenus in Wayland so that GTK and other toolkits can support them natively too, but for now, forcing non-Qt apps to X11 is your only option if you want other toolkits to support the app menu under Wayland.
Comment 6 Aleksana 2022-08-10 17:37:47 UTC

*** This bug has been marked as a duplicate of bug 424485 ***