define support for text/x-java and application/sql, output by xdg-mime in place of text/plain. fixes issue #312

This commit is contained in:
Jean-Francois Dockes 2016-06-17 10:06:25 +02:00
parent af4e4fc90d
commit c75be77069
2 changed files with 8 additions and 0 deletions

View file

@ -64,6 +64,7 @@ application/vnd.ms-office = execm rcldoc.py
application/ogg = execm rclaudio application/ogg = execm rclaudio
application/pdf = execm rclpdf.py application/pdf = execm rclpdf.py
application/postscript = exec pstotext;charset=iso-8859-1;mimetype=text/plain application/postscript = exec pstotext;charset=iso-8859-1;mimetype=text/plain
application/sql = internal text/plain
application/vnd.ms-excel = execm rclxls.py application/vnd.ms-excel = execm rclxls.py
application/vnd.ms-powerpoint = execm rclppt.py application/vnd.ms-powerpoint = execm rclppt.py
application/vnd.oasis.opendocument.text = execm rclsoff.py application/vnd.oasis.opendocument.text = execm rclsoff.py
@ -152,6 +153,7 @@ text/x-html-sidux-man = exec rclsiduxman
text/x-html-aptosid-man = exec rclaptosidman text/x-html-aptosid-man = exec rclaptosidman
text/x-chm-html = internal text/html text/x-chm-html = internal text/html
text/x-ini = internal text/plain text/x-ini = internal text/plain
text/x-java = internal text/plain
text/x-mail = internal text/x-mail = internal
text/x-man = exec rclman text/x-man = exec rclman
text/x-perl = internal text/plain text/x-perl = internal text/plain
@ -181,6 +183,7 @@ application/msword = wordprocessing
application/ogg = sownd application/ogg = sownd
application/pdf = pdf application/pdf = pdf
application/postscript = postscript application/postscript = postscript
application/sql = source
application/vnd.ms-excel = spreadsheet application/vnd.ms-excel = spreadsheet
application/vnd.ms-powerpoint = presentation application/vnd.ms-powerpoint = presentation
application/vnd.oasis.opendocument.presentation = presentation application/vnd.oasis.opendocument.presentation = presentation
@ -259,6 +262,7 @@ text/x-fictionbook = document
text/x-html-aptosid-man = aptosid-book text/x-html-aptosid-man = aptosid-book
text/x-html-sidux-man = sidux-book text/x-html-sidux-man = sidux-book
text/x-ini = txt text/x-ini = txt
text/x-java = source
text/x-mail = message text/x-mail = message
text/x-man = document text/x-man = document
text/x-perl = source text/x-perl = source
@ -290,6 +294,7 @@ text = \
application/msword \ application/msword \
application/pdf \ application/pdf \
application/postscript \ application/postscript \
application/sql \
application/vnd.oasis.opendocument.text \ application/vnd.oasis.opendocument.text \
application/vnd.openxmlformats-officedocument.wordprocessingml.document \ application/vnd.openxmlformats-officedocument.wordprocessingml.document \
application/vnd.openxmlformats-officedocument.wordprocessingml.template \ application/vnd.openxmlformats-officedocument.wordprocessingml.template \
@ -327,6 +332,7 @@ text = \
text/x-html-aptosid-man \ text/x-html-aptosid-man \
text/x-html-sidux-man \ text/x-html-sidux-man \
text/x-ini \ text/x-ini \
text/x-java \
text/x-man \ text/x-man \
text/x-perl \ text/x-perl \
text/x-python \ text/x-python \

View file

@ -20,12 +20,14 @@
.hxx = text/x-c .hxx = text/x-c
.cs = text/x-csharp .cs = text/x-csharp
.css = text/css .css = text/css
.java = text/x-java
.js = application/javascript .js = application/javascript
.f = text/x-fortran .f = text/x-fortran
.py = text/x-python .py = text/x-python
.awk = application/x-awk .awk = application/x-awk
.pl = application/x-perl .pl = application/x-perl
.sh = application/x-shellscript .sh = application/x-shellscript
.sql = application/sql
.tcl = text/x-tcl .tcl = text/x-tcl
.xml = text/xml .xml = text/xml