https://bugs.kde.org/show_bug.cgi?id=511937

            Bug ID: 511937
           Summary: Kickoff and krunner don't show multiple matches for
                    desktop shortcuts with very similar names
    Classification: Plasma
           Product: plasmashell
      Version First 6.3.4
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Application Launcher (Kickoff) widget
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: 1.0

Created attachment 186681
  --> https://bugs.kde.org/attachment.cgi?id=186681&action=edit
"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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to