Bug 391404

Summary: RFE: Dolphin shows an icon corresponding to the file suffix. It show one corresponding to the actual file type.
Product: [Frameworks and Libraries] frameworks-kio Reporter: David Tonhofer <bughunt>
Component: generalAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: bugseforuns, elvis.angelaccio, kde.bugs, kde, kdelibs-bugs
Priority: NOR    
Version: 5.43.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Tonhofer 2018-03-04 22:56:15 UTC
As I have currently a bit of trouble with Dolphin renaming my files willy-nilly, I though that:

Currently Dolpin displays an icon depending on the file suffix, e.g. one "image" icon for ".png", and another for ".pdf" - irrespective of the true file type (which is ontained by a call to the functionality of 'file' I suppose), which can be checked in the "properties" dialog.

Showing a file icon depending on the actual file type instead of the file suffix would be the Right Thing to do. It would alert the user to a type problem if a ".png" is displayed as a pdf for example.

If there is no suffix in the first place, the icon displayed depends on the file type in any case. So one would also be consistent here.
Comment 1 Kai Uwe Broulik 2018-03-05 09:10:20 UTC
That is KFileItem in KIO iirc and is done for speed.
Comment 2 K.J. Petrie 2020-06-07 12:19:25 UTC
I suspect a related issue (possibly the same) is that in its Open dialogue Okular only shows as "All Supported Files" those with a .pdf suffix, which is confusing if PDFs are saved without it.

However, if "All Files" is selected the correct icon is shown.
Comment 3 K.J. Petrie 2020-06-07 12:22:57 UTC
Forget that. Dolphin shows the correct icon so this is not the same bug, if the bug actually still exists.