Bug 455278 - Match English text in search results even when using a different language
Summary: Match English text in search results even when using a different language
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.25.0
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2022-06-14 20:53 UTC by KairanD
Modified: 2022-07-20 16:45 UTC (History)
2 users (show)

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


Attachments
Result when searching for GIMP (352.44 KB, image/png)
2022-07-05 14:14 UTC, KairanD
Details
GNOME Boxes not showing up as Flatpak (435.49 KB, image/png)
2022-07-05 20:48 UTC, KairanD
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KairanD 2022-06-14 20:53:16 UTC
STEPS TO REPRODUCE
1. Open Discover;
2. Search for an application (like GIMP, for example).

OBSERVED RESULT
When searching for GIMP, for example, on Discover, only the Snap version shows up and there's no option to change the source when selecting it. This is happening with only some applications. For others the apt and Flatpak versions are showing up normally.

EXPECTED RESULT
The apt and Flatpak versions should be listed or there should be an option to change the source (apt, Flatpak or Snap).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel: 5.13.0-48-generic (64-bit)

ADDITIONAL INFORMATION
This was already happening before the update to Plasma 5.25.0.
Comment 1 Nate Graham 2022-06-15 17:59:44 UTC
Neon intentionally disabled showing the distro-packaged versions of these apps in Discover because it wantss you to get them from Snap or Flatpak instead. If you don't like this, then Neon is probably the wrong distro for you, as I find it's best to avoid fighting your distro's packaging decisions.

Can you search for "GIMP" and attach a screenshot of what you see in the search results?
Comment 2 Bug Janitor Service 2022-06-30 04:37:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 KairanD 2022-07-05 14:14:15 UTC
Created attachment 150415 [details]
Result when searching for GIMP

Search result when looking for GIMP. The Flatpak version doesn't shows up and there's no option to change the source when selecting the Snap version.
Comment 4 KairanD 2022-07-05 14:24:56 UTC
(In reply to Nate Graham from comment #1)
> Neon intentionally disabled showing the distro-packaged versions of these
> apps in Discover because it wantss you to get them from Snap or Flatpak
> instead. If you don't like this, then Neon is probably the wrong distro for
> you, as I find it's best to avoid fighting your distro's packaging decisions.
> 
> Can you search for "GIMP" and attach a screenshot of what you see in the
> search results?

Hi there! Sorry for not answering earlier.

I didn't know that apt results had been disabled, thanks for the info. I asked because I thought they were not being displayed due to an error.

I always prefer to use Flatpak packages. Since some are not showing up in Discover, I installed them using the terminal.

In the attached GIMP example, I think there should be, in the upper right corner, a symbol with three dots for source selection (Flatpak/Snap).
Comment 5 Nate Graham 2022-07-05 15:59:26 UTC
In your screenshot, can you find another separate entry for GIMP elsewhere in the middle column? I suspect what's happening is that the Flatpak and Snap entries are shown separately, rather than grouped together into one with a "source" dropdown menu that lets you choose which one you want. Can you check? Thanks!
Comment 6 KairanD 2022-07-05 20:47:14 UTC
(In reply to Nate Graham from comment #5)
> In your screenshot, can you find another separate entry for GIMP elsewhere
> in the middle column? I suspect what's happening is that the Flatpak and
> Snap entries are shown separately, rather than grouped together into one
> with a "source" dropdown menu that lets you choose which one you want. Can
> you check? Thanks!
Hi, Nate! Thanks for answering.

I'm sure there are no other entries. Another example of application that is not showing up as a Flatpak is Boxes: only the Snap version appears (without option to choose source).
Comment 7 KairanD 2022-07-05 20:48:53 UTC
Created attachment 150426 [details]
GNOME Boxes not showing up as Flatpak

Only the Snap version of GNOME Boxes is being shown.
Comment 8 Nate Graham 2022-07-06 15:19:41 UTC
Can you find GIMP and Boxes in the Flathub repo in Discover by going to the Settings page and clicking on the ">" button on the list item for Flathub?
Comment 9 KairanD 2022-07-14 08:52:25 UTC
At first I did not find them, but then I found the "problem": Flatpak Boxes is only indexed as "Caixas" and Flatpak GIMP only shows up if I type "Programa de manipulação de imagem do GNU". It is not a Discover bug, but a translation (English to Brazilian Portuguese) matter.

Personally I found these translations quite confusing. And it would be great if Discover still indexed the original terms in English in addition to Portuguese.

Thanks a lot for your help. Sorry for submitting this as a "bug".
Comment 10 Nate Graham 2022-07-14 14:12:34 UTC
Aha! That makes sense. In other places we match English search terms even when using a different language, so I think it makes sense to do it here too, if it's technically feasible.
Comment 11 Aleix Pol 2022-07-20 16:45:36 UTC
We are relying on appstream to resolve the searches, opened an issue there, hopefully we can figure it out all together.
https://github.com/ximion/appstream/issues/419