<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>448452</bug_id>
          
          <creation_ts>2022-01-14 11:27:54 +0000</creation_ts>
          <short_desc>Global menu broken for Wayland-native GTK applications</short_desc>
          <delta_ts>2022-08-10 17:37:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Global Menu widget</component>
          <version>5.23.90</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>424485</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Linus Dierheimer">Linus</reporter>
          <assigned_to name="Kai Uwe Broulik">kde</assigned_to>
          <cc>alexander.huang.y</cc>
    
    <cc>gobonja</cc>
    
    <cc>j5lx</cc>
    
    <cc>mvourlakos</cc>
    
    <cc>nate</cc>
    
    <cc>nicolas.fella</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>uhhadd</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2093588</commentid>
    <comment_count>0</comment_count>
    <who name="Linus Dierheimer">Linus</who>
    <bug_when>2022-01-14 11:27:54 +0000</bug_when>
    <thetext>SUMMARY

After the update to the 5.24 beta, GTK apps don&apos;t seem to have a global menu anymore. The panel containing the &quot;global menu&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093828</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-01-14 21:18:34 +0000</bug_when>
    <thetext>Wayland or X11? Or both?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093976</commentid>
    <comment_count>2</comment_count>
    <who name="Linus Dierheimer">Linus</who>
    <bug_when>2022-01-15 09:52:46 +0000</bug_when>
    <thetext>Wayland only.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095239</commentid>
    <comment_count>3</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2022-01-19 00:00:31 +0000</bug_when>
    <thetext>Did this actually work before on Wayland? I remember that being an older issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095295</commentid>
    <comment_count>4</comment_count>
    <who name="Linus Dierheimer">Linus</who>
    <bug_when>2022-01-19 09:05:52 +0000</bug_when>
    <thetext>Yes, 5.23.5 works. But it was implemented not long ago. If i had to guess i would say around 5.22.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095296</commentid>
    <comment_count>5</comment_count>
    <who name="Janet Blackquill">uhhadd</who>
    <bug_when>2022-01-19 09:12:08 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144882</commentid>
    <comment_count>6</comment_count>
    <who name="Aleksana">alexander.huang.y</who>
    <bug_when>2022-08-10 17:37:47 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 424485 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>