favicon: Create a link for svg favicons

Instead of creating a scaled variants

Fixes #326
This commit is contained in:
Bilal Elmoussaoui 2022-05-09 09:42:42 +02:00
parent a41f8382a4
commit d24fcc3546

View file

@ -418,6 +418,14 @@ impl Provider {
large_pixbuf.savev(large_cache.clone(), "png", &[])?;
};
tokio::fs::remove_file(cache_path).await?;
} else {
let mut small_cache = cache_path.clone();
small_cache.set_file_name(small_icon_name);
tokio::fs::symlink(&cache_path, small_cache).await?;
let mut large_cache = cache_path.clone();
large_cache.set_file_name(large_icon_name);
tokio::fs::symlink(&cache_path, large_cache).await?;
}
Ok(icon_name.to_string())
} else {