34

It's a rather simple problem, but I can't find the solution:

The menu bar in Kate (File, Edit, ...) has disappeared, and I tried looking up in the katerc file. How can I restore it?

user258532
  • 1,298

4 Answers4

48

Had the same problem... and CTRL+M also solved it for me. I never actively hide my menus, so arriving at this solution was not intuitive. No idea what (bug?) caused the sudden disappearance of the menu.

mook765
  • 18,644
protonic
  • 626
3

Came across this same bug this week. Unfortunately I had [Ctrl] + [M] mapped to something else. My solution was to find the file .katerc (in ~/.config on my Kubuntu machine), and invoked (courtesy of http://askubuntu.com/a/1274762/1002900)

find ./ -type f -exec sed -i 's/MenuBar=Disabled/MenuBar=Enabled/g' {} \;
find ./ -type f -exec sed -i 's/Show Menu Bar=false/Show Menu Bar=true/g' {} \;

to replace

MenuBar=Disabled and Show Menu Bar=false

with

MenuBar=Enabled and Show Menu Bar=true

I closed all my open kate windows, restarted, and my menu bar was back.

Fergal
  • 161
2

Three things are required to get your menus back under the title bar.

  1. cd into your .config folder and execute:

    find ./ -type f -exec sed -i 's/MenuBar=Disabled/MenuBar=Enabled/g' {} \;
    
  2. In KDE settings > Window management > Menu tab > remove burger applications menu from title bar in both active and inactive windows

  3. In KDE settings > Startup > Services > disable the menu daemon

Plus if you want your top menus in kate, hit ctrl+m twice.

Simon Sudler
  • 4,111
Dave
  • 21
2

I solved the problem by:

  • looking for katerc with find * | grep katerc, and deleted it
  • sudo apt purge kate
  • sudo apt install kate
user258532
  • 1,298