Bug 432822 - Discover can't find k4dirstat
Summary: Discover can't find k4dirstat
Status: RESOLVED INTENTIONAL
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-12 00:32 UTC by Michael
Modified: 2021-02-17 05:23 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2021-02-12 00:32:41 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open Discover
2. In the search box, type "k4dir" because we're looking for "k4dirstat" but can't remember the full string name.


OBSERVED RESULT

The spinning wheel spins endlessly with the message, "Still looking..."


EXPECTED RESULT

k4dirstat should appear as a match almost immediately.

The only way to get a match is to search exactly for "k4dirstat". Maybe there should be fuzzier matching to help us.


SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-65-generic
OS Type: 64-bit



ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-02-12 18:02:51 UTC
Is k4dirstat the name of a user-facing app, or a non-GUI package? what does `appstreamcli search k4dirstat` show?
Comment 2 Michael 2021-02-12 19:28:33 UTC
Yes, k4dirstat is very much a user-facing GUI app; it's like Filelight yet pre-dates it. I prefer k4dirstat because the block-centric visual approach is more intuitive to me than the ring-based readout of Filelight.

Here's an overview of k4dirstat: https://www.linuxlinks.com/k4dirstat/

Anyhoo...

$ appstreamcli search k4dirstat
Unable to find component matching k4dirstat!
Comment 3 Nate Graham 2021-02-12 19:52:08 UTC
(In reply to Michael from comment #2)
> Yes, k4dirstat is very much a user-facing GUI app; it's like Filelight yet
> pre-dates it. I prefer k4dirstat because the block-centric visual approach
> is more intuitive to me than the ring-based readout of Filelight.
> 
> Here's an overview of k4dirstat: https://www.linuxlinks.com/k4dirstat/
> 
> Anyhoo...
> 
> $ appstreamcli search k4dirstat
> Unable to find component matching k4dirstat!
All right, that's the problem: it doesn't have any AppStream metadata! Discover only shows apps with AppStream metadata.

Since you're using Neon, I happen to know what's going on: Neon removed the AppStream metadata for all GUI apps that come from Ubuntu, because using that software is unsupported in Neon. The intention is for users to get their GUI software form Flatpak or Snap. So this is in fact the intended state of affairs.

You're welcome to still install the app of course, but you'll need to use command-line tools, and if the app breaks or blows up your system, don't complain to the Neon devs about it. :)
Comment 4 Michael 2021-02-12 21:57:25 UTC
> Neon removed the AppStream metadata for all GUI apps that come from Ubuntu, 
> because using that software is unsupported in Neon. The intention is for users 
> to get their GUI software form Flatpak or Snap. So this is in fact the intended 
> state of affairs.

Okay, I see now. I didn't know that that was their policy. 

But back to my original concern: why does typing a partial string query, in this case "k4dir", stop Discover from showing a match? Discover *pretends* it's looking with its "Still looking..." message, but that's deceptive because the message never changes and it confuses the user. 

However, if I type the full string "k4dirstat", then Discover says, "oh here it is". So is this a bug that Discover pretends to be looking for something if you don't specify it exactly?
Comment 5 Aleix Pol 2021-02-15 13:00:53 UTC
Because you were leveraging a fallback that we have in place for people to still be able to install packages, which in fact is in its way to be removed by 5.22.
Comment 6 Nate Graham 2021-02-16 15:44:40 UTC
The extended explanation is that Discover has a hidden feature to return results for packages without AppStream metadata if you search for the exact name, but not a partial string. We recently removed this hidden feature for Plasma 5.22 because it resulted in confusing situations just like these. :)
Comment 7 Michael 2021-02-16 22:16:46 UTC
Okay, thank you both for the added explanation, much appreciated :)
Comment 8 Nate Graham 2021-02-17 05:23:47 UTC
You're welcome!