Bug 337708

Summary: Too many file types are not recognized by Dolphin.
Product: [Unmaintained] kdelibs Reporter: Dave High <hochdavid>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: cfeck, frank78ac
Priority: NOR    
Version: 4.11.5   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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/
Comment 4 Christoph Cullmann 2024-09-14 16:18:23 UTC
Hi,

kdelibs (version 4 and earlier) is no longer maintained since a few years.

KDE Frameworks 5 or 6 might already have implemented this wish.

If not, please re-open against the matching framework if feasible or against the application that shows the issue.

We then can still dispatch it to the right Bugzilla product or component.

Greetings
Christoph Cullmann