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

--- Comment #2 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
(In reply to rasq37 from comment #0)
> Created attachment 107644 [details]
> dolphin recogizes as MATLAB
> 
> Many text files on my system are identified as 'MATLAB script/function'
> including /etc/nanorc, /etc/pacman.d/mirrorlist.pacnew

This happens because of this rule in the shared-mime-info database:

    <magic priority="10">
      <match type="string" value="##" offset="0"/>
    </magic>

So any text file whose first line starts with two or more '#' will be
identified as matlab script (unless an higher priority rule says otherwise).

> and a markdown file that uses the .md extension.

Can't reproduce this, the .md extension should rule out Matlab. Can you attach
a test file?

> In the last case, I don't see why dolphin
> should try to guess what type of file it is if it uses a recognized file
> extension. Is there any reason why the extension is not the primary means of
> identifying file types?

In general, extensions may be missing or wrong.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to