summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-15 13:34:58 +0200
committerraveit65 <[email protected]>2019-09-22 02:46:16 +0200
commit09d1ff998680161a3264c06c1ee7f846911cd963 (patch)
tree99f88f8e1878e519c2ec793a2a73146ce4bbc3c7
parente5d2b428b86f3a09bbd035332698123971545d99 (diff)
downloadengrampa-09d1ff998680161a3264c06c1ee7f846911cd963.tar.bz2
engrampa-09d1ff998680161a3264c06c1ee7f846911cd963.tar.xz
LHA: Fix internet media type
LHA media type is application/x-lzh-compressed $ file --mime-type ~/test.lzh /home/robert/test.lzh: application/x-lzh-compressed
-rw-r--r--caja/caja-engrampa.c2
-rw-r--r--data/engrampa.desktop.in.in2
-rw-r--r--src/fr-command-lha.c2
-rw-r--r--src/fr-init.c6
4 files changed, 6 insertions, 6 deletions
diff --git a/caja/caja-engrampa.c b/caja/caja-engrampa.c
index 2815654..8e1a8f2 100644
--- a/caja/caja-engrampa.c
+++ b/caja/caja-engrampa.c
@@ -169,7 +169,7 @@ static struct {
{ "application/x-gzpostscript", TRUE },
{ "application/x-java-archive", TRUE },
{ "application/x-lha", TRUE },
- { "application/x-lhz", TRUE },
+ { "application/x-lzh-compressed", TRUE },
{ "application/x-lzip", TRUE },
{ "application/x-lzip-compressed-tar", TRUE },
{ "application/x-lzma", TRUE },
diff --git a/data/engrampa.desktop.in.in b/data/engrampa.desktop.in.in
index 628229d..26ccf0c 100644
--- a/data/engrampa.desktop.in.in
+++ b/data/engrampa.desktop.in.in
@@ -9,7 +9,7 @@ Terminal=false
Type=Application
Icon=engrampa
Categories=GTK;Utility;Archiving;Compression;
-MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-brotli;application/x-brotli-compressed-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/vnd.debian.binary-package;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;application/vnd.ms-cab-compressed;application/zstd;
+MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-brotli;application/x-brotli-compressed-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/vnd.debian.binary-package;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lzh-compressed;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;application/x-archive;application/vnd.ms-cab-compressed;application/zstd;
Keywords=MATE;archive;manager;compression;
X-MATE-DocPath=engrampa/engrampa.xml
X-MATE-Bugzilla-Bugzilla=MATE
diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c
index 4d00af7..69f2d90 100644
--- a/src/fr-command-lha.c
+++ b/src/fr-command-lha.c
@@ -309,7 +309,7 @@ fr_command_lha_extract (FrCommand *comm,
}
-const char *lha_mime_type[] = { "application/x-lha", NULL };
+const char *lha_mime_type[] = { "application/x-lzh-compressed", NULL };
static const char **
diff --git a/src/fr-init.c b/src/fr-init.c
index 3c6ce24..8c06372 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -89,7 +89,7 @@ FrMimeTypeDescription mime_type_desc[] = {
{ "application/x-ear", ".ear", N_("Ear (.ear)"), 0 },
{ "application/x-gzip", ".gz", N_("GZip compressed file (.gz)"), 0 },
{ "application/x-java-archive", ".jar", N_("Jar (.jar)"), 0 },
- { "application/x-lha", ".lzh", N_("Lha (.lzh)"), 0 },
+ { "application/x-lzh-compressed", ".lzh", N_("Lha (.lzh)"), 0 },
{ "application/x-lrzip", ".lrz", N_("Lrzip (.lrz)"), 0},
{ "application/x-lrzip-compressed-tar", ".tar.lrz", N_("Tar compressed with lrzip (.tar.lrz)"), 0 },
{ "application/x-lzip", ".lz", N_("LZip compressed file (.lz)"), 0 },
@@ -136,9 +136,9 @@ FrExtensionType file_ext_type[] = {
{ ".gz", "application/x-gzip" },
{ ".iso", "application/x-cd-image" },
{ ".jar", "application/x-java-archive" },
- { ".lha", "application/x-lha" },
+ { ".lha", "application/x-lzh-compressed" },
{ ".lrz", "application/x-lrzip" },
- { ".lzh", "application/x-lha" },
+ { ".lzh", "application/x-lzh-compressed" },
{ ".lz", "application/x-lzip" },
{ ".lzma", "application/x-lzma" },
{ ".lzo", "application/x-lzop" },