When I activate the global menu bar and deactivate it again, some applications (eg okular) have problems to show their application menu bar again. The user farukdgn already had the same problem but posted his question into the forums. He already described a way how to workaround the problem: https://forum.kde.org/viewtopic.php?f=17&t=140368 The problem is, that okular and the other programs add the entry "MenuBar=Disabled" after activating the global menu. But when you disable the global menu again, the entry will not be removed. When you delete the entry by yourself out of the okularrc file in ~/.config/ folder, the application menu bar will be shown again. How to reproduce: 1. Go to System settings -> Application style -> Widget style -> Fine tuning, change Menubar style to Title bar button or Application menu widget and Apply changes. 2. Open one of the applications above (there may be more applications with the same issue, I have only discovered Ark, Ksysguard and Okular. But some applications are not bugged, for example Kwrite and KCalc does not have the same issue). 3. Close the application. 4. In the Fine tuning tab, choose In application as Menubar style and Apply changes. 5. Open the application you did in Step 2. There still isn't menu bar in application.
What KDE Frameworks version is this? I recall there having been a fix for that but Okular might do something differently? Albert, any idea?
Thanks for help. The kde frameworks version is 5.38.0. Actually I do not really understand, why every application seems to add a entry for "MenuBar=Disabled" into its own config file. Why do they not just ask the system (like a environment variable) if they should show the menu bar or not? Are there any further reasons for implementing this that way?
Which okular version are you using?
My okular version is 17.08.1
About okular, v17.04.3 should have this problem fixed with https://cgit.kde.org/okular.git/commit/?id=3b5f19fd9d67b49a7009b5810c5dd4ecb1a7cede unless Qt decided to change something and the global menubar doesn't return true on menuBar()->isNativeMenuBar() anymore, you should probably open a new bug for each of the apps, but it's not really very prioritary for me, but maybe someone else will have a look.
What Qt version are you using?
My Qt version is 5.9.1
I can confirm. I disabled my global menu and now Okular doesn't show its menu bar anymore. I can toggle it using Ctrl+M, however. The same affects Gwenview from what I can tell. Other apps, like KWrite, just show their window menu bar again automatically.
Thanks for testing, Kai. So let's get another bug going for Gwenview and keep this bug to track Okular.
If somehow we are to be using this for okular, someone move it over to okular not plasmashell?
Still occurs with Okular. However, some applications don't show the menubar after even with 'Ctrl+M' when global menu has been disabled: Lokalize, Muon and Calligra. Their config files have the line 'MenuBar=Disabled'. Should I file bug reports for these apps individually or is it a global menu problem?
Reproduced with Kdenlive, Ark and KDevelop.
There's many more. I recently put the global menu in the title bar, just to try it out again. Big mistake. Ever since, I have been fighting to get the menu bar back in so many apps. Dolphin, ksudoku, konsole, just to name a few. In some cases, Ctrl+m helps, in others it doesn't. e.g. for ksudoku I couldn't find any way to get it back other than to edit the rc file. I really would not recommend anybody to use the global menu unless they are 100% sure they will never want the menubar back.
I too can reproduce this. In most cases, Ctrl+M or Show menu bar from the hamburger menu restores the bar. However, in Lokalize the menu bar is completely missing still and there's no way to restore it. Ctrl+M doesn't work, there's no hamburger menu, nothing.
(In reply to Heimen Stoffels from comment #14) > I too can reproduce this. In most cases, Ctrl+M or Show menu bar from the > hamburger menu restores the bar. However, in Lokalize the menu bar is > completely missing still and there's no way to restore it. Ctrl+M doesn't > work, there's no hamburger menu, nothing. Even if I edit lokalizerc and change MenuBar=Disabled to MenuBar=Enabled, it still doesn't show.