Don't warn about path for COSMIC apps

This commit is contained in:
Ron Williams
2024-08-24 11:49:49 -07:00
parent 0876bed222
commit 47799a896d
+6 -5
View File
@@ -84,11 +84,12 @@ pub fn open(raw_path: UserSliceRo, flags: usize) -> Result<FileHandle> {
&& !path_buf.starts_with("display")
&& !path_buf.starts_with("orbital:")
{
println!(
"deprecated: legacy path {:?} used by {}",
path_buf,
context::current().read().name
);
let name = context::current().read().name.clone();
if !name.contains("cosmic")
// FIXME cosmic apps need crate updates
{
println!("deprecated: legacy path {:?} used by {}", path_buf, name);
}
}
let path = RedoxPath::from_absolute(&path_buf).ok_or(Error::new(EINVAL))?;