Disable Global Menu per App

I tried this but it doesn’t work with QT Creator. The reason I need this is that every time I compile something, the menu disappears. I found a “solution”, but it is very inelegant.

#!/bin/bash

qdbus org.kde.kded5 /kded org.kde.kded5.unloadModule "appmenu"
qtcreator &
sleep 3
qdbus org.kde.kded5 /kded org.kde.kded5.loadModule "appmenu"

Is there a better solution?

1 Like