[dolphin] [Bug 443253] FTP folder ignores default application to open file

Nicolas Fella bugzilla_noreply at kde.org
Mon Dec 6 22:05:43 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=443253

--- Comment #4 from Nicolas Fella <nicolas.fella at gmx.de> ---
The problem is somewhat obvious, the best solution isn't.

The relevant Dolphin code is in
https://invent.kde.org/system/dolphin/-/blob/master/src/dolphinviewcontainer.cpp#L658

KIO::OpenUrlJob first looks whether the scheme (ftp) is handles by any app and
only when that isn't given tries to determine the MIME type.

I see a couple possible options:
1) Dolphin already knows the MIME type. We could resolve the preferred app and
use KIO::ApplicationLauncherJob instead. That's probably what the context menu
entry does anyway
2) Change OpenUrlJob to prefer determining the mime type over the scheme
handler
3) Add API to pass the MIME type from Dolphin to OpenUrlJob and make it use
that

David, Ahmad, Kai: thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list