diff --git a/src/image/provider.rs b/src/image/provider.rs index 5aa6c13..13707d5 100644 --- a/src/image/provider.rs +++ b/src/image/provider.rs @@ -74,7 +74,7 @@ impl<'a> ImageProvider<'a> { }) } Some(input_type) => Err(Report::msg(format!("Unsupported image type: {input_type}"))), - None if PathBuf::from(input_name).exists() => { + None if PathBuf::from(input_name).is_file() => { Ok(ImageLocation::Local(PathBuf::from(input_name))) } None => get_desktop_icon_name(input_name).map_or_else(