From 937c2cf4b3241ab3a4d290d50bb93380fab016eb Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 9 Oct 2015 16:14:32 +0200 Subject: [PATCH] avoid using .srt suffix for text/plain temp files --- src/sampleconf/mimeconf | 1 + src/sampleconf/mimemap | 2 +- src/sampleconf/mimeview | 1 + src/windows/mimeconf | 1 + src/windows/mimeview | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf index 26418ca2..3eaed760 100644 --- a/src/sampleconf/mimeconf +++ b/src/sampleconf/mimeconf @@ -157,6 +157,7 @@ text/x-purple-log = exec rclpurple text/x-purple-html-log = internal text/html text/x-python = exec rclpython text/x-shellscript = internal text/plain +text/x-srt = internal text/plain text/x-tex = exec rcltex application/xml = exec rclxml diff --git a/src/sampleconf/mimemap b/src/sampleconf/mimemap index e866256c..0d53d3be 100644 --- a/src/sampleconf/mimemap +++ b/src/sampleconf/mimemap @@ -3,7 +3,7 @@ .txt = text/plain .text = text/plain -.srt = text/plain +.srt = text/x-srt .ini = text/x-ini .csv = text/x-csv diff --git a/src/sampleconf/mimeview b/src/sampleconf/mimeview index b3a50dee..91a3196c 100644 --- a/src/sampleconf/mimeview +++ b/src/sampleconf/mimeview @@ -134,6 +134,7 @@ application/x-perl = emacsclient --no-wait %f text/x-perl = emacsclient --no-wait %f application/x-shellscript = emacsclient --no-wait %f text/x-shellscript = emacsclient --no-wait %f +text/x-srt = emacsclient --no-wait %f # Or firefox -remote "openFile(%u)" text/html = firefox %u diff --git a/src/windows/mimeconf b/src/windows/mimeconf index a4ecfe78..26dfdd7b 100644 --- a/src/windows/mimeconf +++ b/src/windows/mimeconf @@ -146,6 +146,7 @@ text/x-mail = internal text/x-perl = internal text/plain text/x-python = exec python rclpython text/x-shellscript = internal text/plain +text/x-srt = internal text/plain application/xml = execm python rclxml text/xml = execm python rclxml diff --git a/src/windows/mimeview b/src/windows/mimeview index 50726ee3..8e905586 100644 --- a/src/windows/mimeview +++ b/src/windows/mimeview @@ -139,6 +139,7 @@ application/x-perl = emacsclient --no-wait %f text/x-perl = emacsclient --no-wait %f application/x-shellscript = emacsclient --no-wait %f text/x-shellscript = emacsclient --no-wait %f +text/x-srt = emacsclient --no-wait %f # Or firefox -remote "openFile(%u)" text/html = firefox %u