diff --git a/czkawka_core/src/similar_videos.rs b/czkawka_core/src/similar_videos.rs index 0eefcb6..fffe669 100644 --- a/czkawka_core/src/similar_videos.rs +++ b/czkawka_core/src/similar_videos.rs @@ -814,7 +814,7 @@ fn get_cache_file() -> String { } pub fn check_if_ffmpeg_is_installed() -> bool { - let vid = "999999999999999999.txt"; + let vid = "9999czekoczekoczekolada999.txt"; if let Err(DetermineVideo { src_path: _a, error: FfmpegNotFound, diff --git a/czkawka_gui/src/gui_structs/gui_bottom_buttons.rs b/czkawka_gui/src/gui_structs/gui_bottom_buttons.rs index 4d6120a..d5c1420 100644 --- a/czkawka_gui/src/gui_structs/gui_bottom_buttons.rs +++ b/czkawka_gui/src/gui_structs/gui_bottom_buttons.rs @@ -135,6 +135,8 @@ fn test_hardlinks() -> bool { use std::io::Write; use std::path::Path; + let mut hardlinked = false; + if let Some(proj_dirs) = ProjectDirs::from("pl", "Qarmin", "Czkawka") { let cache_dir = proj_dirs.cache_dir(); let cache_file = cache_dir.join(Path::new("GILLES_FROM_NOSE.temp")); @@ -153,12 +155,12 @@ fn test_hardlinks() -> bool { let _ = fs::hard_link(&cache_file, &cache_file_second); if cache_file.exists() && cache_file_second.exists() { - return true; + hardlinked = true; } } let _ = fs::remove_file(&cache_file); let _ = fs::remove_file(&cache_file_second); } - false + hardlinked }