Bug 507588 - After clearing search history, it's is still available until KRunner is restarted
Summary: After clearing search history, it's is still available until KRunner is resta...
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.4.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Nate Graham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-28 11:22 UTC by Piotr Dobrogost
Modified: 2025-11-19 21:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:


Attachments
screenshot of KRunner showing Recent Queries (27.41 KB, image/png)
2025-07-28 11:22 UTC, Piotr Dobrogost
Details

Note You need to log in before you can comment on or make changes to this bug.
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