Bug 333290

Summary: appmenu krunner plugin freezes when active window doesn't export dbus menus
Product: [Frameworks and Libraries] kded-appmenu Reporter: Eric Francis <airdrik>
Component: top menubarAssignee: Cédric Bellegarde <web>
Status: RESOLVED UNMAINTAINED    
Severity: minor CC: kamikazow
Priority: NOR    
Version First Reported In: 4.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eric Francis 2014-04-10 16:45:06 UTC
When I set the menubar style to anything other than In Application, and activate the krunner appmenu plugin, for most (kde/qt/gtk) applications everything works as expected: krunner operates smoothly and I can use it to search through and launch the various menu items.
However, when running krunner with certain applications active, like Netbeans, PyCharm (java swing and swt? apps in general), plasma-desktop; krunner responds normally for the first second or so but then freezes for about a minute before continuing where it left off.  After the first freeze krunner operates normally (though no menu items are available).

Reproducible: Always

Steps to Reproduce:
1. Change Menubar style (System Settings -> Application Appearance -> Style -> Fine Tuning) to anything other than In Application (so that the krunner plugin can access the menu)
2. Enable AppMenu action launcher plugin in krunner
3. Focus one of the afore-mentioned applications (happens with plasma-desktop, so switching focus to the desktop will trigger it)
4. launch krunner and type something
Actual Results:  
Krunner will start displaying results, but then it will freeze for about a minute

Expected Results:  
Krunner won't freeze

I've observed this bug in all versions of appmenu.
If the bug can be worked around for certain java swing and/or swt apps (like Netbeans or any of the IdeaJ IDEs (I haven't tested Eclipse recently, but I think it might happen with that as well)) by changing some configuration to enable exporting their menus, that would also be appreciated.
Comment 1 markuss 2017-02-05 12:35:35 UTC
This is for the old Plasma 4 implementation. Plasma 5.9 has a new implementation of the menu bar.