<?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>453600</bug_id>
          
          <creation_ts>2022-05-09 20:51:26 +0000</creation_ts>
          <short_desc>electron-qt-apps + wayland: no working global menu (= no menus, unuseable) - needed dependecies? roadmap?</short_desc>
          <delta_ts>2022-08-12 08:55:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>kded-appmenu</product>
          <component>menu exporter</component>
          <version>5.24.4</version>
          <rep_platform>Other</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></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="gonanza">gonanza</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>philipp.reichmuth</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>2122401</commentid>
    <comment_count>0</comment_count>
    <who name="gonanza">gonanza</who>
    <bug_when>2022-05-09 20:51:26 +0000</bug_when>
    <thetext>SUMMARY
If you start a qt-app under kde (running wayland), the apps (konsole, dolphin etc.) cant access global menu (when using sddm / kwin before, gdm3 / mutter is slightly diffent). This is independent of the graphics platform used.

The only workaround is to trick the app by using GDK_BACKEND=&quot;x11&quot; and / or QT_QPA_PLATFORM=&quot;xcb&quot; (= nonisolated)

1. What are the needed dependencies currently to get &apos;global menu&apos; working under wayland with qt-apps (without tricking them back into x11)? 
2. What are dependencies when using &apos;global menu&apos; with wayland while also using &apos;firejail&apos;? under gdm3 / mutter this sems to be not a problem (because the mutter-wayland-flavor seems to be not so much &apos;wayland&apos;-only currently even if you set variables strict), under sddm / kwin this produces some in part severe problems)
currently installed: appmenu-registrar, libdbusmenu-qt5-2 (as well as the gtk-flavour (lib-)appmenu-gtk-x-module, dbusmenu / gir, libayatana-appindicator-stuff)
3. If this is a bug and currently worked on: what is the roadmap. The current situation is terrible it brakes systems or produces follow-up-problems when workarounds are used.


STEPS TO REPRODUCE
1. setup sddm, kde, wayland-compatible graphics 
2. setup global menu 
3. start a qt-app (with  QT_QPA_PLATFORM=&quot;wayland&quot;,  GDK_BACKEND=&quot;wayland&quot;)

OBSERVED RESULT
no global menu entries show up (tested with intel, amd, nvidia)

EXPECTED RESULT
transfer of global menu entries

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: debian 11
(available in About System)
KDE Plasma Version:  5.24.4
KDE Frameworks Version:  5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122408</commentid>
    <comment_count>1</comment_count>
    <who name="gonanza">gonanza</who>
    <bug_when>2022-05-09 21:23:34 +0000</bug_when>
    <thetext>Another question would be how to activate &apos;global menu&apos; in electron-based apps (brave, freetube, signal etc.) when they are started wayland only (--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations).

as well as the above: only workaround seems to be &apos;QT_QPA_PLATFORM=&quot;xcb&quot;&apos; thus destroying all wayland-benefits (as well as downgrading resolution to 1920x1080 max and rendering all texts blurry), ending again in an x11-environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126019</commentid>
    <comment_count>2</comment_count>
    <who name="gonanza">gonanza</who>
    <bug_when>2022-05-23 21:23:16 +0000</bug_when>
    <thetext>First issue does work normally after updating again to 5.24.5 and 5.93.0 (workaround before was using gtk as QT_QPA_PLATFORMTHEME).

however second issue, electron-apps do not show the menu under wayland-only conditions (workaround is GDK_BACKEND=&quot;x11&quot; and *not* --ozone-platform=wayland, thus making the blurry and reducing UHD to HD resolutions) as before, any plans to fix this (or any workaround to gain at least UHD-resolution)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145341</commentid>
    <comment_count>3</comment_count>
    <who name="phrxmd">philipp.reichmuth</who>
    <bug_when>2022-08-12 08:55:20 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>