-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file-roller: Add stone archive mimetype
- Loading branch information
Showing
4 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From 2327e098542fec3ab782251d45a415baec1ece1c Mon Sep 17 00:00:00 2001 | ||
From: Cory Forsstrom <cforsstrom18@gmail.com> | ||
Date: Mon, 4 Nov 2024 14:06:46 -0800 | ||
Subject: [PATCH] Add stone mime | ||
|
||
--- | ||
data/supported-mime-types | 1 + | ||
src/fr-archive-libarchive.c | 4 +++- | ||
2 files changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/data/supported-mime-types b/data/supported-mime-types | ||
index 3c5a76d6..8abd45cd 100644 | ||
--- a/data/supported-mime-types | ||
+++ b/data/supported-mime-types | ||
@@ -63,3 +63,4 @@ application/x-zstd-compressed-tar; | ||
application/x-zoo; | ||
application/zip; | ||
application/zstd; | ||
+application/x-stone-archive; | ||
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c | ||
index 14045729..92b77067 100644 | ||
--- a/src/fr-archive-libarchive.c | ||
+++ b/src/fr-archive-libarchive.c | ||
@@ -124,6 +124,7 @@ const char *libarchiver_mime_types[] = { | ||
"application/x-zstd-compressed-tar", | ||
#endif | ||
"application/zip", | ||
+ "application/x-stone-archive", | ||
NULL | ||
}; | ||
|
||
@@ -208,7 +209,8 @@ fr_archive_libarchive_get_capabilities (FrArchive *archive, | ||
|| (strcmp (mime_type, "application/x-lha") == 0) | ||
|| (strcmp (mime_type, "application/x-rar") == 0) | ||
|| (strcmp (mime_type, "application/x-rpm") == 0) | ||
- || (strcmp (mime_type, "application/x-xar") == 0)) | ||
+ || (strcmp (mime_type, "application/x-xar") == 0) | ||
+ || (strcmp (mime_type, "application/x-stone-archive") == 0)) | ||
{ | ||
return capabilities; | ||
} | ||
-- | ||
2.47.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0001-stone-mime.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters