Bug 337708 - Too many file types are not recognized by Dolphin.
Summary: Too many file types are not recognized by Dolphin.
Status: REPORTED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: 4.11.5
Platform: Mint (Ubuntu based) Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 20:20 UTC by Dave High
Modified: 2014-07-28 16:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave High 2014-07-22 20:20:04 UTC
Dolphin identifies file types only by extensions and mime type (like Microsoft Windows). Dolphin does not examine the first bits to get information about the file type, like the "file" command.

Reproducible: Always

Steps to Reproduce:
1. Take the file "unknown.xxx" that is not recognized by Dolphin.
2. In a Terminal do: file unknown.xxx
3. The output of that command shows in most cases, a correct description of the file.
Actual Results:  
In too many cases Dolphin cannot give me any information about a file.

Expected Results:  
Dolphin should recognize more file types. In particular binary files.

File manager like Dolphin should use linux tools to examine a file. They should not solely rely on file extensions.
Comment 1 Christoph Feck 2014-07-23 01:45:44 UTC
Content type determination is used on files without extensions. Are you implying that you have files that have wrong extensions?
Comment 2 Dave High 2014-07-23 15:03:53 UTC
Hello Christoph,
In my opinion files should be recognized regardless of their extensions.
For example, some files that Dolphin shows as unrecognized, can in
fact be recognized with the Linux tool "file".
Best regards        David

2014-07-23 3:45 GMT+02:00, Christoph Feck <christoph@maxiom.de>:
> https://bugs.kde.org/show_bug.cgi?id=337708
>
> Christoph Feck <christoph@maxiom.de> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |christoph@maxiom.de
>
> --- Comment #1 from Christoph Feck <christoph@maxiom.de> ---
> Content type determination is used on files without extensions. Are you
> implying that you have files that have wrong extensions?
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Frank Reininghaus 2014-07-28 16:42:47 UTC
If I'm not mistaken, then files whose type cannot be determined from the extension are examined. If you still have files with "Unknown" type, then this means that determining the type from the contents was unsuccessful.

In any case, it's not a Dolphin issue because mime type detection is handled by kdecore AFAIK. I'm not sure how we should proceed here because I'm not really familiar with the mime type stuff. Most of it is handled by the "Shared mime info" project, I think. Probably the best idea would be that you provide files with "Unknown" mime type to this project, such that the files can be analyzed and the "Shared mime info" be improved:

http://freedesktop.org/wiki/Software/shared-mime-info/