fix: disable .djvu temporarily to prevent Überzug++ from freezing, close #379

This commit is contained in:
sxyazi 2023-11-20 12:02:44 +08:00
parent d2963b23a9
commit a6f76400f8
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -71,8 +71,10 @@ impl Ueberzug {
path.to_string_lossy(),
"\n"
);
debug!("ueberzug command: {}", s);
stdin.write_all(s.as_bytes()).await?;
} else {
debug!("ueberzug command: remove");
stdin
.write_all(format!(r#"{{"action":"remove","identifier":"yazi"}}{}"#, "\n").as_bytes())
.await?;

View file

@ -24,7 +24,7 @@ impl MimeKind {
|| s.ends_with("/x-wine-extension-ini")
{
Self::Text
} else if s.starts_with("image/") {
} else if s.starts_with("image/") && s != "image/vnd.djvu" {
Self::Image
} else if s.starts_with("video/") {
Self::Video