From adde2e5d4e1b26733db0fa220e6f847c762ce02a Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 14 Mar 2022 18:09:40 +0100 Subject: [PATCH] Add application/rtf with same settings as text/rtf. application/rtf is actually the official type --- src/sampleconf/mimeconf | 3 +++ src/sampleconf/mimemap | 2 -- src/sampleconf/mimeview | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf index 39bb54ca..cfeaf955 100644 --- a/src/sampleconf/mimeconf +++ b/src/sampleconf/mimeconf @@ -209,6 +209,7 @@ text/html = internal text/plain = internal text/plain1 = internal text/rtf = exec unrtf --nopict --html;mimetype=text/html +application/rtf = exec unrtf --nopict --html;mimetype=text/html text/x-bibtex = exec rclbibtex.sh ; mimetype = text/plain text/x-c = internal text/x-c+ = internal @@ -346,6 +347,7 @@ text/html|epub = bookchap text/html|gnuinfo = bookchap text/plain = txt text/rtf = wordprocessing +application/rtf = wordprocessing text/x-bibtex = txt text/x-c = source text/x-c+ = source @@ -432,6 +434,7 @@ text = \ text/html \ text/plain \ text/rtf \ + application/rtf \ text/x-bibtex \ text/x-c \ text/x-c++ \ diff --git a/src/sampleconf/mimemap b/src/sampleconf/mimemap index bc9ecf95..d528e50c 100644 --- a/src/sampleconf/mimemap +++ b/src/sampleconf/mimemap @@ -194,8 +194,6 @@ .wpd = application/vnd.wordperfect -.rtf = text/rtf - # Note: file -i says audio/x-midi, but soft karaoke files are special. .aac = audio/aac .ape = audio/ape diff --git a/src/sampleconf/mimeview b/src/sampleconf/mimeview index add716d0..1a83b213 100644 --- a/src/sampleconf/mimeview +++ b/src/sampleconf/mimeview @@ -99,6 +99,7 @@ application/vnd.sun.xml.writer.global = libreoffice %f application/vnd.sun.xml.writer.template = libreoffice %f application/vnd.wordperfect = libreoffice %f text/rtf = libreoffice %f +application/rtf = libreoffice %f application/x-dia-diagram = dia %f