Bug 438965 - Icon for ELF Extensions (application/x-object mimetype)
Summary: Icon for ELF Extensions (application/x-object mimetype)
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: Icons (show other bugs)
Version: 5.22.2
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-20 21:56 UTC by Xeno Idaltu
Modified: 2021-07-29 17:26 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xeno Idaltu 2021-06-20 21:56:01 UTC
I noticed that some ELF executables don't have mimetypes.

Only Shared Object/Library has the correct mimetype.

*.mod is for Grub Module
*.ko is for Kernel Module

Grub2's Font *.pf2 also needs to be added.
Comment 1 Alois Wohlschlager 2021-06-23 14:04:53 UTC
I think there are multiple different bugs here.

* The file tool thinks that .ko files are object files (not ideal), and object files are missing a mimetype icon.
* .mod files are also object files according to the file tool, but it shows up as "Amiga SoundTracker Audio" in Dolphin.

Can you reproduce this behavior? In this case, the .mod issue should probably be filed separately.
Comment 2 Xeno Idaltu 2021-06-27 11:15:59 UTC
(In reply to Alois Wohlschlager from comment #1)
> I think there are multiple different bugs here.
> 
> * The file tool thinks that .ko files are object files (not ideal), and
> object files are missing a mimetype icon.
> * .mod files are also object files according to the file tool, but it shows
> up as "Amiga SoundTracker Audio" in Dolphin.
> 
> Can you reproduce this behavior? In this case, the .mod issue should
> probably be filed separately.



I used command "mediainfo" and got same results. The reason Grub2's .mod files are labeled as Amiga is because the person who made the Breeze Icon theme probably left it like that.

If we remove the .mod and .ko extensions of Grub2 and Linux Kernel Modules then they are automatically labeled as Object Files.
Comment 3 Alois Wohlschlager 2021-06-29 13:14:51 UTC
I have reported the .mod issue against shared-mime-info [0], since this is where the mimetype detection is specified.

Breeze explicitly ships the "unknown file type" icon for application/x-object (which is what .ko files get detected as), which I think is very suboptimal. Hence I have marked this bug as confirmed.

[0] https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/165