Commit 696481c8 authored by Antonio Rojas's avatar Antonio Rojas
Browse files

fish: don't overwrite dir mimetype with extension based one

This makes dirs with a dot in their name or special names (such as 'core') report a wrong mime type

BUG: 452940
parent 9ca35979
Pipeline #169156 passed with stage
in 2 minutes and 33 seconds
......@@ -1001,7 +1001,7 @@ void fishProtocol::manageConnection(const QString &l) {
// By default, the mimetype comes from the extension
// We'll use the file(1) result only as fallback [like the rest of KDE does]
if ( udsMime != "inode/directory" ) {
QUrl kurl("fish://host/"+thisFn);
QMimeDatabase db;
QMimeType mime = db.mimeTypeForUrl(kurl);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment