Added a few know suffixes to avoid unnecessary xdg-mime execs

This commit is contained in:
Jean-Francois Dockes 2022-01-09 09:30:37 +01:00
parent 3a9d7f7cb6
commit d883500c17
2 changed files with 17 additions and 7 deletions

View File

@ -15,6 +15,8 @@
.rst = text/plain
.md = text/plain
.gv = text/plain
.desktop = text/plain
.json = text/plain
# .log is in the default noContentSuffixes, so this will also need a recoll.conf setting to do
# anything
@ -58,6 +60,7 @@
.ipynb = application/x-ipynb+json
.xml = text/xml
.opf = text/xml
.note = application/x-gnote
@ -90,16 +93,20 @@
.svg = image/svg+xml
.dia = application/x-dia-diagram
# Compressed files
.gz = application/x-gzip
.Z = application/x-gzip
.bz2 = application/x-bzip2
.rar = application/x-rar
#.Z = application/x-compress
.zip = application/zip
.7z = application/x-7z-compressed
.maff = application/zip
.lzma = application/x-lzma
.xz = application/x-xz
.zst = application/x-zstd
# Archives
.rar = application/x-rar
.zip = application/zip
.maff = application/zip
.7z = application/x-7z-compressed
# The rcltar module can handle compressed tar formats internally so we
# use application/x-tar for all tar files compressed or not. Note that tar
# file indexing is disabled by default, you'll need to copy and uncomment
@ -123,7 +130,9 @@
.chm = application/x-chm
.epub = application/epub+zip
.kepub = application/epub+zip
.mobi = application/x-mobipocket-ebook
.lit = application/x-ms-reader
# OpenOffice / opendocument. We handle opendocument as old openoffice files
# for now
@ -200,6 +209,7 @@
.ogg = application/ogg
.ogx = audio/ogg
.opus = audio/ogg
.wav = audio/x-wav
.wv = audio/x-wavpack
.mkv = video/x-matroska

View File

@ -88,8 +88,8 @@ onlyNames =
# can be redefined for subdirectories.</descr></var>
noContentSuffixes = .md5 .map \
.o .lib .dll .a .sys .exe .com \
.mpp .mpt .vsd \
.img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \
.mpp .mpt .vsd .sqlite \
.img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz .ttf \
.dat .bak .rdf .log.gz .log .db .msf .pid \
,v ~ #