[file-roller] Add support for .apk files
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Add support for .apk files
- Date: Fri, 11 Jan 2019 09:04:10 +0000 (UTC)
commit a8fd43cd5e6f8290a911403615794ed33cab1878
Author: Tim Schumacher <timschumi gmx de>
Date: Sun Sep 16 09:21:43 2018 +0200
Add support for .apk files
.apk files are just .zip files with a different extension. Add them
to the list for zip-supported MIME types.
data/supported-mime-types | 1 +
src/fr-command-zip.c | 1 +
src/fr-init.c | 2 ++
3 files changed, 4 insertions(+)
---
diff --git a/data/supported-mime-types b/data/supported-mime-types
index f8c67f70..4e649538 100644
--- a/data/supported-mime-types
+++ b/data/supported-mime-types
@@ -1,5 +1,6 @@
application/epub+zip;
application/gzip;
+application/vnd.android.package-archive;
application/vnd.ms-cab-compressed;
application/vnd.debian.binary-package;
application/x-7z-compressed;
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 296d04b5..f25f77b4 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -388,6 +388,7 @@ fr_command_zip_handle_error (FrCommand *comm,
const char *zip_mime_type[] = {
"application/epub+zip",
+ "application/vnd.android.package-archive",
"application/x-cbz",
"application/x-chrome-extension",
"application/x-ear",
diff --git a/src/fr-init.c b/src/fr-init.c
index 583b9ade..e130ffa9 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -66,6 +66,7 @@ FrMimeTypeDescription mime_type_desc[] = {
{ "application/x-7z-compressed-tar", ".tar.7z", 0 },
{ "application/x-ace", ".ace", 0 },
{ "application/x-alz", ".alz", 0 },
+ { "application/vnd.android.package-archive", ".apk", 0 },
{ "application/x-ar", ".ar", 0 },
{ "application/x-arj", ".arj", 0 },
{ "application/x-bzip", ".bz2", 0 },
@@ -121,6 +122,7 @@ FrExtensionType file_ext_type[] = {
{ ".7z", "application/x-7z-compressed" },
{ ".ace", "application/x-ace" },
{ ".alz", "application/x-alz" },
+ { ".apk", "application/vnd.android.package-archive" },
{ ".ar", "application/x-ar" },
{ ".arj", "application/x-arj" },
{ ".bin", "application/x-stuffit" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]