We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3eb88dd + e85cd06 commit 72ddeaeCopy full SHA for 72ddeae
1 file changed
cortex-tui/src/runner/event_loop.rs
@@ -10081,10 +10081,15 @@ impl EventLoop {
10081
#[cfg(target_os = "linux")]
10082
{
10083
// Spawn thread to avoid blocking UI - Linux clipboard needs to wait for manager
10084
- std::thread::spawn(move || {
10085
- if let Ok(mut clipboard) = arboard::Clipboard::new() {
+ std::thread::spawn(move || match arboard::Clipboard::new() {
+ Ok(mut clipboard) => {
10086
use arboard::SetExtLinux;
10087
- let _ = clipboard.set().wait().text(selected_text);
+ if let Err(e) = clipboard.set().wait().text(selected_text) {
10088
+ tracing::warn!("Failed to copy to clipboard: {}", e);
10089
+ }
10090
10091
+ Err(e) => {
10092
+ tracing::warn!("Failed to access clipboard: {}", e);
10093
}
10094
});
10095
0 commit comments