Bug#858729: plasma-discover: too many bugs for the next stable
2017-03-25 22:27 GMT+01:00 Rene Engelhard <rene@debian.org>:
> [ I am NOT the plasma-discover maintainer ]
>
> On Sat, Mar 25, 2017 at 12:53:20PM -0400, Leand wrote:
>> There are basic functions that are bugged. For example, the search
>> function returns wrong and unrelated results too many times. If I
>> search for "office" or "writer" it doesn't show LibreOffice packages
>> or LibreOffice Writer at all. Furthermore in some cases it doesn't
>
> Looks it looks at Name and/or GenericName in the .desktop files. Here:
>
> # cat /usr/share/applications/libreoffice-writer.desktop | grep -E '(.*Name=|.*Name\[en.*\]=)'
> Name=LibreOffice Writer
> GenericName=Word Processor
> GenericName[en]=Word Processor
> GenericName[en_GB]=Word Processor
> GenericName[en_ZA]=Word Processor
> [...]
>
> So if it takes GenericName before Name it of course doesn't see "LibreOffice Writer" but
> "Word Processor". And also note "office" and "writer" don't even appear in Name (not the
> case), no idea whether the search is case-sensitive, though.
The explanation is even easier here: LO Writer is not in the metadata,
because it symlinks files in /usr/share/applications, which the
metadata generator doesn't support.
See https://appstream.debian.org/sid/main/issues/index.html#Debian_LibreOffice_Maintainers_%3Cdebian-openoffice@lists.debian.org%3E
for the issue information.
So, this is not a bug in Discover. Also, all of the issues outlined in
this bug report are minor annoyances which do not at all justify the
severity of "grave" for this bug report.
I am even tempted to close it:
* The search results are not Discover's fault, or are intended (see below)
* Discover will not show dependencies or packages - it is not a
package manager. If you want a package manager, use Apper or Muon.
* Displaying unrelated stuff to be removed when removing Gimp is
definitely a bug, but creating a clean, new one with normal priority
is a better idea here. Also, immediately reporting this upstream will
help.
>> even display the exact name of the packages in any way, for example
>> the package "file-roller" (Gnome's File Roller) is displayed as
>> "Archive manager".
>
> # cat /usr/share/applications/org.gnome.FileRoller.desktop | grep -E '(.*Name=|.*Name\[en.*\]=)'
> Name=Archive Manager
> Name[en@shaw]=𐑸𐑒𐑲𐑝 𐑥𐑨𐑯𐑩𐑡𐑼
> Name[en_CA]=Archive Manager
> Name[en_GB]=Archive Manager
>
> So at least the second one is expected.
Jup, that's the reason. Nothing we can do here - complain to GNOME for
using very generic names.
Cheers,
Matthias
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
Reply to: