Open TheAssassin opened 6 years ago
Information missing in the example definition
Do we need to clarify those before we can submit this to libmagic?
I would rather send in a complete definition instead of a half finished one. If it's only half finished, potential AppImages won't be recognized.
Regarding the MIME types, libmagic users seem to be more interested in getting MIME types, as they're more "machine readable" than the textual descriptions. It shouldn't be a problem to add the "official" MIME types to the corresponding definitions.
Do I need to do something?
@probonopd we just need a volunteer who's willing to do the work. Doesn't matter who's going to do it.
Every developer and/or Linux user knows the command
file
, which can be used to display file types of arbitrary files.At the moment, AppImages are recognized as ELF executables:
I experimented a bit, and with the following definition (incomplete type 1), I can get a result like:
Many tools use libmagic instead of the shared MIME database (
/usr/share/mime
, packageshared-mime-info
), and therefore don't recognize AppImages. We should submit the AppImage specification as a definition to the maintainers offile
/libmagic.See http://openpreservation.org/blog/2012/08/09/magic-editing-and-creation-primer/ on how to submit definitions.
Information missing in the example definition:
file -i <file>
)