https://bugs.kde.org/show_bug.cgi?id=385693

--- Comment #10 from Märt Bakhoff <a...@sigil.red> ---
I interrogated krunner with gdb and found some potentially useful information:

The query in the text field is overwritten here:

plasma-workspace-5.11.4/krunner/view.cpp:380
375 void View::query(const QString &term)
376 {
377     setVisible(true);
378
379     m_qmlObj->rootObject()->setProperty("runner", QString());
380     m_qmlObj->rootObject()->setProperty("query", term);
381 }

The query method is triggered by a QDBusActivateObjectEvent, which does a
QDBusActivateObjectEvent::placeMetaCall

The metacall seems to be sent from
plasma-workspace-5.11.4/shell/desktopview.cpp:241:
240 org::kde::krunner::App krunner(interface, QStringLiteral("/App"),
QDBusConnection::sessionBus());
241 krunner.query(text);

Debugging plasmashell shows that this snippet runs every time when krunner text
is overwritten and the argument text has size() == 1.

Another observation:
1) open konsole, focus it
2) type alt+f2, "d"
3) click on krunner text field to focus it
4) click on konsole to focus it (krunner doesn't close)
5) click on krunner text field to focus it
6) type "olphin" -> text field now contains "dolphin" as expected

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to