Bug 509447

Summary: Provide user-friendly term instead of raw MIME type text in app search for handlers for file type
Product: [Applications] Discover Reporter: Justin Zobel <justin>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: aleixpol, kde, kdedev, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.4.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:
Attachments: Screenshot

Description Justin Zobel 2025-09-13 05:03:58 UTC
Created attachment 184929 [details]
Screenshot

SUMMARY
I downloaded a torrent, but I didn't have any torrent application installed, so I clicked find torrent app in Discover. However, once it opened, it had technical jargon that may confuse users.

STEPS TO REPRODUCE
1. Have no torrent app
2. Download a .torrent and try to open it
3. Use the option to find an app to open it

OBSERVED RESULT
Screenshot

EXPECTED RESULT
User-friendly terms

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.5-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: AMD Radeon RX 7600

Not sure how we can automatically get a friendly name from 'applicaiton/x-bittorrent'. If there is no user-friendly name info somewhere that these map to, we may have to make our own.

If not easy we could change it to 'Applications that can open "torrent" files.'
Comment 1 Kai Uwe Broulik 2025-09-13 05:34:52 UTC
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in?ref_type=heads#L1884

Shared mime info knows this type as "Bittorrent seed file"
Comment 2 TraceyC 2025-09-16 22:18:44 UTC
This is a reasonable suggestion. Changing to wishlist since this is a feature request, not a bug.
Comment 3 Bug Janitor Service 2025-11-02 15:52:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1199
Comment 4 Aleix Pol 2025-11-15 11:50:42 UTC
Git commit 0aff12d2b58bb8a15cee6643331c0f363751e98a by Aleix Pol Gonzalez, on behalf of Taras Oleksyn.
Committed on 15/11/2025 at 10:18.
Pushed by apol into branch 'master'.

Updated Discover to use user-friendly term (MIME type comment) instead of raw MIME type when running with --mime

M  +10   -0    discover/DiscoverObject.cpp
M  +1    -0    discover/DiscoverObject.h
M  +3    -1    discover/qml/Navigation.qml

https://invent.kde.org/plasma/discover/-/commit/0aff12d2b58bb8a15cee6643331c0f363751e98a