Bug 441233 - Global Menu applet exists invisibly, suppressing menubars in all apps with menubars (including non-KDE apps)
Summary: Global Menu applet exists invisibly, suppressing menubars in all apps with me...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-08-20 12:10 UTC by Germano Massullo
Modified: 2023-04-27 21:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
dbus-monitor__pcap-dolphin (109.02 KB, text/plain)
2021-08-20 12:56 UTC, Germano Massullo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2021-08-20 12:10:58 UTC
The menu of all applications on my system disappeared. I mean the menu in the upper part of the application window, with "File, Modify, etc.".
It happens on both GTK and Qt applications. Some examples:
- Dolphin
- Firefox
- Libreoffice
- KeepassXC

Plasma 5.22.4
KDE Frameworks 5.83.0
Qt 5.15.2
Fedora 34
Comment 1 David Edmundson 2021-08-20 12:21:29 UTC
So you neither get them in the global menu nor inside the app?

Please run dbus-monitor --pcap and open dolphin
Comment 2 Germano Massullo 2021-08-20 12:56:27 UTC
Created attachment 140871 [details]
dbus-monitor__pcap-dolphin

(In reply to David Edmundson from comment #1)
> So you neither get them in the global menu nor inside the app?

I don't know what is the global menu. It's just the menu that I mentioned that does not appear. If I right click, menus appear. 

> Please run dbus-monitor --pcap and open dolphin

I have forwarded the output to a file because otherwise I could not save the Konsole output (I don't have the menu). Note that I don't know why the output encoding is so messed up. Note also that this computer has been installed just a few weeks ago so its settings are pretty clean

$ dbus-monitor --pcap > dbus-monitor__pcap-dolphin
Comment 3 Germano Massullo 2021-08-20 13:52:31 UTC
I have forgotten to say that the screen is a multiscreen configuration


$ qdbus org.kde.KWin /KWin supportInformation

==========================

Version
=======
KWin version: 5.22.4
Qt Version: 5.15.2
Qt compile version: 5.15.2
XCB compile version: 1.13.1

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101002
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Plugin recommends border size: None
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: DRM
Active: true
Atomic Mode Setting on GPU 0: true
Using EGL Streams: false

Cursor
======
themeName: Breeze_Snow
themeSize: 24

Options
=======
focusPolicy: 0
xwaylandCrashPolicy: 
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777250
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 101
glPlatformInterface: 2
windowsBlockCompositing: true
latencyPolicy: 
renderTimeEstimator: 

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  yes
Number of Screens: 2

Screen 0:
---------
Name: DP-2
Geometry: 0,0,1440x2560
Scale: 1
Refresh Rate: 59.951
Adaptive Sync: incapable
Screen 1:
---------
Name: HDMI-A-3
Geometry: 1440,1120,2560x1440
Scale: 1
Refresh Rate: 59.951
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.1.7
OpenGL platform interface: EGL
OpenGL shading language version string: 4.60
Driver: Intel
GPU class: Coffee Lake
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 21.1.7
Linux kernel version: 5.13.10
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
kwin4_effect_sessionquit
screenshot
desktopgrid
kwin4_effect_translucency
colorpicker
kwin4_effect_frozenapp
presentwindows
kwin4_effect_dialogparent
highlightwindow
blur
contrast
startupfeedback
kscreen

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false

screenshot:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

kwin4_effect_translucency:
pluginId: kwin4_effect_translucency
isActiveFullScreenEffect: false

colorpicker:

kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: true
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

kscreen:


Loaded Plugins:
---------------
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
kwin5_plugin_screencast

Available Plugins:
------------------
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
kwin5_plugin_screencast
Comment 4 Nate Graham 2021-08-20 14:51:17 UTC
Did you ever experiment with using a Global Menu applet or a titlebar appmenu button and then later go back to the default configuration?

In a KDE app like Dolphin, does the Ctrl+M shortcut bring back the in-window menubar?
Comment 5 Germano Massullo 2021-08-20 15:12:31 UTC
(In reply to Nate Graham from comment #4)
> Did you ever experiment with using a Global Menu applet or a titlebar
> appmenu button and then later go back to the default configuration?

No, never experienced that

> In a KDE app like Dolphin, does the Ctrl+M shortcut bring back the in-window
> menubar?

CTRL + M has no effect
Comment 6 Nate Graham 2021-08-20 16:38:12 UTC
Well that's extremely odd.
Comment 7 Germano Massullo 2021-08-21 15:11:42 UTC
(In reply to Nate Graham from comment #6)
> Well that's extremely odd.

Let me know if I can retrieve other debug infos
Comment 8 Germano Massullo 2021-11-04 15:49:26 UTC
What are the Plasma config files in ~/.config that I can attach here? It must be a problem of config files because I created a new user and it works correctly
Comment 9 morguldir 2022-02-17 02:22:12 UTC
I had a similar issue, turns out i had a org.kde.plasma.appmenu entry in my ~/.config/plasma-org.kde.plasma.desktop-appletsrc, so i would post that file.

Although in my situation it seems like i had a global menu on a screen that wasn't connected anymore, since it's been a few years since i came back to plasma, this was a bit confusing. Maybe menu bars should still be shown if there is a global menu that isn't visible anywhere.
Comment 10 Germano Massullo 2022-04-28 09:43:30 UTC
(In reply to morguldir from comment #9)
> I had a similar issue, turns out i had a org.kde.plasma.appmenu entry in my
> ~/.config/plasma-org.kde.plasma.desktop-appletsrc, so i would post that file.
> 
> Although in my situation it seems like i had a global menu on a screen that
> wasn't connected anymore, since it's been a few years since i came back to
> plasma, this was a bit confusing. Maybe menu bars should still be shown if
> there is a global menu that isn't visible anywhere.

I also have such entry in ~/.config/plasma-org.kde.plasma.desktop-appletsrc  but I don't know if it is expected to be there or not

[Containments][25][Applets][26]
immutability=1
plugin=org.kde.plasma.appmenu
Comment 11 Nate Graham 2022-05-02 18:15:08 UTC
So yes, at one point you did have a global menu (even if you didn't realize it), which causes the bug. So this is Bug 439266.

*** This bug has been marked as a duplicate of bug 439266 ***
Comment 12 morguldir 2022-05-02 19:05:08 UTC
(In reply to Nate Graham from comment #11)
> So yes, at one point you did have a global menu (even if you didn't realize
> it), which causes the bug. So this is Bug 439266.
> 
> *** This bug has been marked as a duplicate of bug 439266 ***

I think that one is slightly different, that one is about KDE apps keeping the wrong menu bar state, but this one is about all programs losing their menu bar because there's a global menu that isn't displayed anywhere. (It was quite confusing to diagnose this one when konsole had that bug though)
Comment 13 Nate Graham 2022-05-02 19:07:58 UTC
It's the same bug. The config file doesn't ever actually delete anything--which is a separate bug--but in this case that bug helped to reveal that you have an appmenu entry in there, which means that at one point you did have a Global Menu applet, which means Bug 439266 got triggered in that moment.
Comment 14 morguldir 2022-05-02 19:15:39 UTC
(In reply to Nate Graham from comment #13)
> It's the same bug. The config file doesn't ever actually delete
> anything--which is a separate bug--but in this case that bug helped to
> reveal that you have an appmenu entry in there, which means that at one
> point you did have a Global Menu applet, which means Bug 439266 got
> triggered in that moment.

I don't think I'm understanding you, as far i can tell Bug 439266 is specific to KXMLGUI, while with this issue it would disable the menu bars of everything, for example GTK, chromium, and QT programs. Removing the appmenu entry fixes the issue, and then the KXML bug will be triggered as well, but menu bars will display for non-KDE programs
Comment 15 Nate Graham 2022-05-02 19:19:59 UTC
Oh, I guess it is different, then.

In that case the bug is that you secretly have a Global Menu applet that you can't see, which is suppressing menubars.
Comment 16 Germano Massullo 2022-05-18 18:23:55 UTC
[germano@gm-desktop .config]$ pwd
/home/germano/.config
[germano@gm-desktop .config]$ grep -R "MenuBar=Disabled"
kdenliverc:MenuBar=Disabled
partitionmanagerrc:MenuBar=Disabled
gwenviewrc:MenuBar=Disabled
dolphinrc:MenuBar=Disabled
arkrc:MenuBar=Disabled
okularrc:MenuBar=Disabled
konsolerc:MenuBar=Disabled
session/dolphin_dolphin_dolphin:MenuBar=Disabled
kwriterc:MenuBar=Disabled

removing "MenuBar=Disabled" from such conf files is futile because as soon I open again one of them, the "MenuBar=Disabled" entry will be restored.
Comment 17 Nate Graham 2022-05-18 18:29:26 UTC
Right. The "MenuBar=Disabled" lines in your apps' config files are the symptom, not the cause. The cause is that there's secretly an invisible Global Menu widget that you can't see or use, but your apps notice it, so they write "MenuBar=Disabled" into their config files automatically.
Comment 18 Nate Graham 2023-04-27 21:34:17 UTC
We haven't gotten any new reports of this. I think it's safe to say it's not a widespread issue. Unfortunately, there isn't really any way for us to troubleshoot it after the fact, so I think the best we can do here is say "remove the Global Menu entry from your appletsrc file" and move on with life. Sorry.