mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41: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(),
|
path.to_string_lossy(),
|
||||||
"\n"
|
"\n"
|
||||||
);
|
);
|
||||||
|
debug!("ueberzug command: {}", s);
|
||||||
stdin.write_all(s.as_bytes()).await?;
|
stdin.write_all(s.as_bytes()).await?;
|
||||||
} else {
|
} else {
|
||||||
|
debug!("ueberzug command: remove");
|
||||||
stdin
|
stdin
|
||||||
.write_all(format!(r#"{{"action":"remove","identifier":"yazi"}}{}"#, "\n").as_bytes())
|
.write_all(format!(r#"{{"action":"remove","identifier":"yazi"}}{}"#, "\n").as_bytes())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ impl MimeKind {
|
||||||
|| s.ends_with("/x-wine-extension-ini")
|
|| s.ends_with("/x-wine-extension-ini")
|
||||||
{
|
{
|
||||||
Self::Text
|
Self::Text
|
||||||
} else if s.starts_with("image/") {
|
} else if s.starts_with("image/") && s != "image/vnd.djvu" {
|
||||||
Self::Image
|
Self::Image
|
||||||
} else if s.starts_with("video/") {
|
} else if s.starts_with("video/") {
|
||||||
Self::Video
|
Self::Video
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue