Bug 448452 - Global menu broken for Wayland-native GTK applications
Summary: Global menu broken for Wayland-native GTK applications
Status: RESOLVED DUPLICATE of bug 424485
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu (show other bugs)
Version: 5.23.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-01-14 11:27 UTC by Linus Dierheimer
Modified: 2022-08-10 17:37 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***