Bug 411593 - wxgtk3 apps don't have global menus
Summary: wxgtk3 apps don't have global menus
Status: CLOSED DOWNSTREAM
Alias: None
Product: kded-appmenu
Classification: Plasma
Component: export (show other bugs)
Version: 5.21.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-04 16:20 UTC by Michał Dybczak
Modified: 2021-04-21 20:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
qdbus (3.30 KB, text/plain)
2021-04-20 21:46 UTC, Michał Dybczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dybczak 2019-09-04 16:20:05 UTC
SUMMARY

wxgtk3 apps don't have global menus. However, the old entry in the Kai Uwe's Blog (posted a link below) suggests this should work, so I assume there had to be some bug introduced along the way. I don't use wxgtk3 apps myself so I can't say when this regression happened.

https://blog.broulik.de/2018/03/gtk-global-menu/screenshot_20180301_152952/

You can check this out in such wxgtk3 apps as aegisub or audacity.

STEPS TO REPRODUCE
1. Install any wxgtk3 app
2. Launch wxgtk3 app (audacity for example)

OBSERVED RESULT

No global menus.

EXPECTED RESULT

Global menus should be exported to the top panel as with other apps.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0
Kernel Version: 5.2.11-1-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 7,7 GiB
Comment 1 Michał Dybczak 2019-10-19 08:35:19 UTC
Plasma 5.17 still has the same issue. Audacity doesn't have global menus.
Comment 2 fabio 2020-07-05 07:33:48 UTC
confirmed in plasma 5.19.2
Comment 3 Michał Dybczak 2021-03-07 21:44:42 UTC
Still true in Plasma 5.21.2.
Comment 4 David Edmundson 2021-04-20 21:32:30 UTC
Please include the output of "xprop " and clicking on one of those windows. 
Then output from qdbus  listing the paths available on the relevant service.
Comment 5 Michał Dybczak 2021-04-20 21:41:52 UTC
Here is the output (icon not included):

xprop
_NET_WM_ICON_GEOMETRY(CARDINAL) = 1395, 1023, 42, 42
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 26, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 26, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "100477ce-11af-461d-9e5d-fa08ff425a91"
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = 
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                bitmap id # to use for icon: 0x8e0007d
                bitmap id # of mask for icon: 0x8e00085
                window id # of group leader: 0x8e00001
_GTK_THEME_VARIANT(UTF8_STRING) = 
_NET_WM_ICON(CARDINAL) =        Icon (48 x 48):

_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 20579412
XdndAware(ATOM) = BITMAP
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 148897915, 148897916
_NET_WM_USER_TIME(CARDINAL) = 20573828
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x8e0007a
WM_CLIENT_LEADER(WINDOW): window id # 0x8e00001
_NET_WM_PID(CARDINAL) = 179844
WM_LOCALE_NAME(STRING) = "pl_PL.UTF-8"
WM_CLIENT_MACHINE(STRING) = "alienware-PC"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified minimum size: 664 by 300
                program specified maximum size: 20000 by 20000
                program specified base size: 250 by 300
                window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "audacity", "Audacity"
WM_ICON_NAME(STRING) = "Audacity"
_NET_WM_ICON_NAME(UTF8_STRING) = "Audacity"
WM_NAME(STRING) = "Audacity"
_NET_WM_NAME(UTF8_STRING) = "Audacity"
Comment 6 Michał Dybczak 2021-04-20 21:46:33 UTC
Created attachment 137743 [details]
qdbus

Here is qdbus the whole output. I have no idea which path is the relevant.
Comment 7 Michał Dybczak 2021-04-20 21:52:29 UTC
Usually global menus work well for me. The only exceptions are Spotify, Steam and some other apps that don't have menus, but those are normal. Other apps have fully functional global menus (qt, gtk, libre, firefox, thunderbird).

And then there are wxgtk3 apps where it doesn't work. Maybe something special is needed for this to run? A package environmental variable?

Does a global menu on audacity works for you?
Comment 8 David Edmundson 2021-04-21 08:38:12 UTC
That window doesn't appear to be trying to export a menu.

That's not a bug on our side.

Search for appmenu-gtk2-module and hopefully it will have some setup guides
Comment 9 Michał Dybczak 2021-04-21 17:31:05 UTC
There is no appmenu-gtk2 package on Manjaro/Arch. Even AUR doesn't have it :(.
I only have appmenu-gtk-module 0.7.6-1

Does it mean that Plasma is not supporting gtk2 and wxgtk3 global menus at all?
Comment 10 Nate Graham 2021-04-21 19:16:44 UTC
openSUSE has it packaged, so you will need to talk to the Arch packagers about this.
Comment 11 David Edmundson 2021-04-21 20:31:00 UTC
>Does it mean that Plasma is not supporting gtk2 and wxgtk3 global menus at all?

Plasma can't do something with data that doesn't exit.