This commit is contained in:
Nikita Podvirnyi 2024-06-17 16:00:43 +02:00
commit 44b3922377
No known key found for this signature in database
GPG key ID: 859D416E5142AFF3
2 changed files with 8 additions and 3 deletions

View file

@ -7,8 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.5.5] - 08.05.2024
### Added
- List missing dependencies on non-standard distros during initial setup

View file

@ -99,7 +99,14 @@ pub fn download_background() -> anyhow::Result<()> {
.arg("-o")
.arg(crate::BACKGROUND_PRIMARY_FILE.as_path())
.spawn()?
.wait_with_output()?;
.wait()?;
// If it failed to re-code the file - just copy it
// Will happen with HSR because devs apparently named
// their background image ".webp" while it's JPEG
if crate::BACKGROUND_PRIMARY_FILE.exists() {
std::fs::copy(crate::BACKGROUND_FILE.as_path(), crate::BACKGROUND_PRIMARY_FILE.as_path())?;
}
}
else {