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

Nicolas Fella bugzilla_noreply at kde.org
Tue Dec 7 18:34:37 GMT 2021


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

--- Comment #6 from Nicolas Fella <nicolas.fella at gmx.de> ---
(In reply to Kai Uwe Broulik from comment #5)
> > 2) Change OpenUrlJob to prefer determining the mime type over the scheme handler
> 
> Wouldn't that end us back at the "examining..." situation where we try to
> figure out how to open the app so it takes a while to open a file?
yeah, probably

> Maybe it really depends on the type of scheme... for a "browsable" protocol
> I would expect it to behave like a local folder. Maybe "if (supportslisting)
> { determine mimetype } else { open with handler }"?
hmm, interesting idea

> 3) Add API to pass the MIME type from Dolphin to OpenUrlJob and make it use
> that
> 
> But yeah, if the mimetype is known and we could save a stat, that would be
> nice either way.
My concern is that it's a bit magic to have the behavior change this way
depending on whether you pass a mimetype or not

I tried implementing option 1), but that breaks running executable scripts (it
always opens them in an editor)

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


More information about the kfm-devel mailing list