mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: disable .djvu temporarily to prevent Überzug++ from freezing, close #379
This commit is contained in:
parent
d2963b23a9
commit
a6f76400f8
2 changed files with 3 additions and 1 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue