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.
That is how the KIO dialog worked before as well, no?
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.
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.
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 :)
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.