Bug 507588

Summary: After clearing search history, it's is still available until KRunner is restarted
Product: [Plasma] krunner Reporter: Piotr Dobrogost <bugs.kde.org>
Component: generalAssignee: Nate Graham <nate>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, kdedev, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.4.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:
Attachments: screenshot of KRunner showing Recent Queries

Description Piotr Dobrogost 2025-07-28 11:22:54 UTC
Created attachment 183595 [details]
screenshot of KRunner showing Recent Queries

After clearing history in the settings KRunner still shows "Recent Queries" as shown in attached screenshot.
Comment 1 Nate Graham 2025-09-23 21:50:59 UTC
Can confirm. If I restart KRunner (or the computer) the history is gone as expected. So the issue is that it doesn't update to reflect the changes until re-launch.
Comment 2 Bug Janitor Service 2025-09-25 21:45:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/krunner/-/merge_requests/206
Comment 3 Bug Janitor Service 2025-09-25 21:50:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5854
Comment 4 Nate Graham 2025-11-19 20:29:17 UTC
Git commit ab46552eabbb71f6459458faae1a12bfbb742506 by Nate Graham.
Committed on 19/11/2025 at 20:29.
Pushed by ngraham into branch 'master'.

Emit historyChanged() when history changed

Supports https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5854

Right now `history` is a property, but it's not `NOTIFY`able, limiting how
it can be used from QML. Emit some signals when it changes.

M  +1    -0    src/CMakeLists.txt
M  +5    -0    src/runnermanager.cpp
M  +10   -1    src/runnermanager.h

https://invent.kde.org/frameworks/krunner/-/commit/ab46552eabbb71f6459458faae1a12bfbb742506
Comment 5 Vlad Zahorodnii 2025-11-19 21:48:41 UTC
Git commit 25eff7e58aea58c61ee76fadf1702f52d0d9e945 by Vlad Zahorodnii, on behalf of Nate Graham.
Committed on 19/11/2025 at 21:48.
Pushed by vladz into branch 'master'.

RunCommand: disable history drop-down button when there's no history

Depends on https://invent.kde.org/frameworks/krunner/-/merge_requests/206, so it's 6.6 material.

### Reason for the change
It's awkward when clearing the history — either all at once or one item at a time — doesn't prevent the history popup from getting opened.


### Test plan
1. Open KRunner
2. Click settings button
3. Click Clear History… > For all Activities
4. Re-open KRunner
5. Try to how the history popup


### Bugs fixed
FIXED-IN: 6.6.0

M  +1    -0    krunner/qml/RunCommand.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/25eff7e58aea58c61ee76fadf1702f52d0d9e945