Handle bz2 mimetypes
This commit is contained in:
parent
ffda03e9c5
commit
4bf72d9f6a
2 changed files with 8 additions and 1 deletions
|
|
@ -194,6 +194,10 @@ pub fn context_menu<'a>(
|
||||||
"application/x-bzip",
|
"application/x-bzip",
|
||||||
#[cfg(feature = "bzip2")]
|
#[cfg(feature = "bzip2")]
|
||||||
"application/x-bzip-compressed-tar",
|
"application/x-bzip-compressed-tar",
|
||||||
|
#[cfg(feature = "bzip2")]
|
||||||
|
"application/x-bzip2",
|
||||||
|
#[cfg(feature = "bzip2")]
|
||||||
|
"application/x-bzip2-compressed-tar",
|
||||||
#[cfg(feature = "xz2")]
|
#[cfg(feature = "xz2")]
|
||||||
"application/x-xz",
|
"application/x-xz",
|
||||||
#[cfg(feature = "xz2")]
|
#[cfg(feature = "xz2")]
|
||||||
|
|
|
||||||
|
|
@ -1029,7 +1029,10 @@ impl Operation {
|
||||||
_ => OperationError::from_str(e),
|
_ => OperationError::from_str(e),
|
||||||
})?,
|
})?,
|
||||||
#[cfg(feature = "bzip2")]
|
#[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)
|
OpReader::new(path, controller)
|
||||||
.map(io::BufReader::new)
|
.map(io::BufReader::new)
|
||||||
.map(bzip2::read::BzDecoder::new)
|
.map(bzip2::read::BzDecoder::new)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue