Bug 460612 - By default, app chooser portal shows all apps, not just apps relevant to the file's mimetype
Summary: By default, app chooser portal shows all apps, not just apps relevant to the ...
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: git-master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-17 17:48 UTC by Nate Graham
Modified: 2025-02-22 18:01 UTC (History)
4 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 Nate Graham 2022-10-17 17:48:46 UTC
Noticed this on the non-portal use case following the merge of https://invent.kde.org/plasma/plasma-integration/-/merge_requests/47. Sorry for not catching this during review... or maybe it regressed since I reviewed?

Seems to work fine when portalized (e.g. from xdg-portal-test-kde), but inappropriately shows all apps when not.
Comment 1 Harald Sitter 2022-10-17 19:24:38 UTC
That is how the KIO dialog worked before as well, no?
Comment 2 Nate Graham 2022-10-17 19:27:04 UTC
Well, sort of.

The old dialog grouped apps by by category, so the view you saw was a few app categories, not a giant overwhelming grid of icons.

I think we should make it behave the way the portalized version does, by only showing apps that register for the file's mimetype, with an option to show all apps if you really want, but they're not visible by default. It's much more user-friendly IMO.
Comment 3 Harald Sitter 2022-10-17 19:33:20 UTC
Perhaps. There are performance concerns though, so we need to do it async and for that I guess we'll need to reshuffle the UI to support some sort of loading state.
Comment 4 Harald Sitter 2023-01-31 10:31:25 UTC
To clarify: we'd need to do mimetype detection and that would need to happens async with a loading state because it can take a while :)
Comment 5 Nate Graham 2025-02-22 18:01:00 UTC
Works better now: it only shows the ones that register themselves as being able to handle the file's mimetype, but there's an option to show all apps, and all apps will be shown when searching.