Mimetype - LMDB files have no mimetype
SUMMARY:
LMDB (Lightning Memory-Mapped Database) files are not included in the mimetype
database. They have a magic number, 0xBEEFC0DE, documented in source code.
STEPS TO REPRODUCE:
Check the mime type of baloo's index:
xdg-mime query filetype ~/.local/share/baloo/index
or
kmimetypefinder5 ~/.local/share/baloo/index
OBSERVED RESULTS
There's no mimetype returned. Querying with "file" give a simple "data" and a
hexdump gives:
0000000 0000 0000 0000 0000 0000 0008 0000 0000
0000020 c0de beef 0001 0000 0000 0000 0000 0000
EXPECTED RESULTS
Maybe... "application/x-lmdb"
SOFTWARE/OS VERSIONS
Neon Testing
Plasma : 5.22.5
Frameworks : 5.86.0
Qt : 5.15.3
$ dpkg-query --show shared-mime-info
shared-mime-info 1.15-1
ADDITIONAL INFORMATION
See:
https://git.openldap.org/openldap/openldap/-/blob/mdb.master/libraries/liblmdb/mdb.c
and search for MDB_MAGIC
#define MDB_MAGIC 0xBEEFC0DE