Bug 511937

Summary: Kickoff and krunner don't show multiple matches for desktop shortcuts with very similar names
Product: [Plasma] plasmashell Reporter: Dan Dascalescu <ddascalescu+kde>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: minor CC: kdedev, mikel5764, noahadvs
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: "Libre" finds LibreZalc
"cal" finds LibreCalc 25.8.2.2

Description Dan Dascalescu 2025-11-11 00:40:43 UTC
Created attachment 186681 [details]
"Libre" finds LibreZalc

SUMMARY

I have two desktop shortcuts to launch LibreOffice with different parameters. They have different names, and one of them has a `GenericName=`:

```
~/.local/share/applications$ ls -1 *ibre*
'LibreCalc 24.desktop'
'LibreCalc 25.8.1-2.desktop'
'LibreCalc 25.8.1.desktop'

$ cat LibreCalc\ 25.8.1.desktop
[Desktop Entry]
Comment=
Exec=/apps/LibreOffice-25.8.2.2.AppImage
Icon=libreoffice-calc
Name=LibreCalc 25.8.2.2
[...]
X-KDE-SubstituteUID=false
X-KDE-Username=

$ cat LibreCalc\ 25.8.1-2.desktop
[Desktop Entry]
Comment=
Exec=/3t/apps/LibreOffice-25.8.2.2.AppImage
GenericName=Slow ZZZZZ
Icon=libreoffice-calc
Name=LibreZalc 25.8.2.2
[...]
X-KDE-SubstituteUID=true
X-KDE-Username=dan2
```

Searching for `Libre` brings up only one of these shortcuts.
Searching for `Calc` brings up the other.

Both searches bring up the other LibreCalc shortcut that matches (LibreCalc 24.desktop -> "LibreCalc 24.8.7.2")

STEPS TO REPRODUCE
1. Create the above .dekstop files in /.local/share/applications
2. Refresh the menu (`kbuildsycoca6`)
3. Search for "Libre"

OBSERVED RESULT
Out of the two shortcuts, only "LibreZalc 25.8.2.2" is shown.

EXPECTED RESULT
Both "LibreZalc 25.8.2.2" and "LibreCalc 25.8.2.2" should be shown.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0 
Qt Version: 6.8.3

ADDITIONAL INFORMATION
Same result in krunner.
Comment 1 Dan Dascalescu 2025-11-11 00:42:05 UTC
Created attachment 186682 [details]
"cal" finds LibreCalc 25.8.2.2

I searched for only "cal" rather than "Calc" because "cal" returns 6 results, and LibreZalc is still missing.

Searching for "Calc" returns only 5 results, and I thought 5 might be a limit to the number of returned results, but "cal" returning 6 invalidates that hypothesis.
Comment 2 TraceyC 2025-12-01 22:01:01 UTC
Thanks for the bug report. I was not able to reproduce this on Plasma 6.5.3 or built from git-master. It may have been fixed.

Can you please re-test on your system with Plasma 6.5.3 or later and let us know if you can still reproduce the problem? Thanks!
Comment 3 Bug Janitor Service 2025-12-16 03:46:13 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!