Handle bz2 mimetypes

This commit is contained in:
Jeremy Soller 2025-05-07 10:10:39 -06:00
parent ffda03e9c5
commit 4bf72d9f6a
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 8 additions and 1 deletions

View file

@ -194,6 +194,10 @@ pub fn context_menu<'a>(
"application/x-bzip",
#[cfg(feature = "bzip2")]
"application/x-bzip-compressed-tar",
#[cfg(feature = "bzip2")]
"application/x-bzip2",
#[cfg(feature = "bzip2")]
"application/x-bzip2-compressed-tar",
#[cfg(feature = "xz2")]
"application/x-xz",
#[cfg(feature = "xz2")]

View file

@ -1029,7 +1029,10 @@ impl Operation {
_ => OperationError::from_str(e),
})?,
#[cfg(feature = "bzip2")]
"application/x-bzip" | "application/x-bzip-compressed-tar" => {
"application/x-bzip"
| "application/x-bzip-compressed-tar"
| "application/x-bzip2"
| "application/x-bzip2-compressed-tar" => {
OpReader::new(path, controller)
.map(io::BufReader::new)
.map(bzip2::read::BzDecoder::new)