Bug 511937 - Kickoff and krunner don't show multiple matches for desktop shortcuts with very similar names
Summary: Kickoff and krunner don't show multiple matches for desktop shortcuts with ve...
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (other bugs)
Version First Reported In: 6.3.4
Platform: Ubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-11 00:40 UTC by Dan Dascalescu
Modified: 2025-12-16 03:46 UTC (History)
3 users (show)

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


Attachments
"Libre" finds LibreZalc (154.29 KB, image/png)
2025-11-11 00:40 UTC, Dan Dascalescu
Details
"cal" finds LibreCalc 25.8.2.2 (123.30 KB, image/png)
2025-11-11 00:42 UTC, Dan Dascalescu
Details

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