Bug 410155

Summary: KRunner Doesn't Show/Keep Command History Under Wayland
Product: [Plasma] krunner Reporter: Alberto Díaz López <takuya>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alexander.lohnau, aspotashev, nate
Priority: NOR    
Version First Reported In: 5.16.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alberto Díaz López 2019-07-24 12:37:11 UTC
SUMMARY

KRunner Doesn't Show/Keep Command History Under Wayland

STEPS TO REPRODUCE
1. Login to Wayland session.
2. Run some commands with KRunner.
3. Type again to KRunner the same string.

OBSERVED RESULT

No history observed at KRunner under Wayland, it doesn't suggest you possible options based on the previous commands you executed with KRunner.

EXPECTED RESULT

KRunner should preserve the command history as it does under Xorg session.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.2.2/5.16.3
(available in About System)
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60
Qt Version: 5.13

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-07-24 14:12:11 UTC
Hmm, works for me on Wayland with git master.
Comment 2 Kai Uwe Broulik 2019-07-25 06:42:42 UTC
Maybe it crashes at some point? I recall that killing krunner has it not save the history
Comment 3 Alexander Lohnau 2020-09-08 14:28:59 UTC
>I recall that killing krunner has it not save the history
That was about the launch counts not being saved (fixed now). But the history has been saved after each session since forever.

Please check if the ~/.config/krunnerrc has a "history=<list of strings>" entry and if it is updated after running a command.

A wild guess would be that you started the query with a space, then the query is not saved. Just like in bash.