Summary: | Apps' in-window menubars do not become visible again after removing a global menu applet | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kxmlgui | Reporter: | jakobdev |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 4wy78uwh, bugseforuns, germano.massullo, hey, jackhill3103, me, mvourlakos, nate, nico, p.r.worrall, plasma-bugs, r.oosterhoff |
Priority: | NOR | Keywords: | usability |
Version: | 5.84.0 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kxmlgui/-/commit/ddc46135a0c68fc61efe0025efe47c36c9f40858 | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
jakobdev
2021-06-28 15:41:54 UTC
I can reproduce this on Kate, and some other applications (tried K3B and Ark), therefore changing product to plasmashell-Global Menu Operating System: KDE neon 5.22 KDE Plasma Version: 5.22.2 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.3 Kernel Version: 5.8.0-59-generic (64-bit) Graphics Platform: Wayland Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics Memory: 7.7 GiB of RAM Graphics Processor: AMD CEDAR While waiting for a fix, is there any way to bring the Menubar back? (In reply to jakobdev from comment #2) > While waiting for a fix, is there any way to bring the Menubar back? I'm not one of the devs, so there may be a better way, but this worked for me: Close Kate and use another editor (e.g. vi or nano) to open ~/.local/share/kate/anonymous.katesesssion and remove the two lines that say MenuBar=Disabled That fixed it for me. Thanks. Yeah, can reproduce. Seems to be a generic issue in KXMLGUI, where the MenuBar=disabled line gets written into apps' config files when the global menu applet is active, but it doesn't get removed afterwards. *** Bug 452320 has been marked as a duplicate of this bug. *** *** Bug 441233 has been marked as a duplicate of this bug. *** *** Bug 456320 has been marked as a duplicate of this bug. *** *** Bug 461457 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/213 Git commit ddc46135a0c68fc61efe0025efe47c36c9f40858 by David Edmundson. Committed on 14/02/2024 at 10:12. Pushed by davidedmundson into branch 'master'. kmainwindow: Do not save menu bar visibilty when global menu is in use KXmlGui tracks the visiblity of the QMenuBar widget to try to know if a user has explicitly shown/hidden a menu. When a native menu (global menu bar plasmoid) is in use the widget is hidden, but not because the user explicitly wanted to not show the menu. If a native menu bar is in use, it does not make sense to have a save/restore the user preference for the menu. M +3 -2 src/kmainwindow.cpp https://invent.kde.org/frameworks/kxmlgui/-/commit/ddc46135a0c68fc61efe0025efe47c36c9f40858 *** Bug 437167 has been marked as a duplicate of this bug. *** The fix was not affecting systems where “the damage” was already done, so if somebody comes across this issue and is interested in a script I just wrote to force enable all menu bars again see here: https://github.com/D3SOX/scripts/blob/master/force-enable-kde-menubars.sh |