Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
linux: Ignore benign error when cancelling file picker (#15553)
apricotbucket28b19356ac6963
diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rsindex 1185c783be9..3d7f8c2adc3 100644--- a/crates/gpui/src/platform/linux/platform.rs+++ b/crates/gpui/src/platform/linux/platform.rs@@ -21,7 +21,6 @@ use std::{use anyhow::anyhow;use ashpd::desktop::file_chooser::{OpenFileRequest, SaveFileRequest};use ashpd::desktop::open_uri::{OpenDirectoryRequest, OpenFileRequest as OpenUriRequest};-use ashpd::desktop::ResponseError;use ashpd::{url, ActivationToken};use async_task::Runnable;use calloop::channel::Channel;@@ -300,7 +299,7 @@ impl<P: LinuxClient + 'static> Platform for P {.filter_map(|uri| uri.to_file_path().ok()).collect::<Vec<_>>(),)),- Err(ashpd::Error::Response(ResponseError::Cancelled)) => Ok(None),+ Err(ashpd::Error::Response(_)) => Ok(None),Err(e) => Err(e.into()),};done_tx.send(result);@@ -338,7 +337,7 @@ impl<P: LinuxClient + 'static> Platform for P {.uris().first().and_then(|uri| uri.to_file_path().ok())),- Err(ashpd::Error::Response(ResponseError::Cancelled)) => Ok(None),+ Err(ashpd::Error::Response(_)) => Ok(None),Err(e) => Err(e.into()),};done_tx.send(result);