Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: installed, copy&paste, special format (#9570)

fufesouba832362a75f
diff --git a/src/ipc.rs b/src/ipc.rs
index 9815fdb74..c7243d821 100644
--- a/src/ipc.rs
+++ b/src/ipc.rs
@@ -121,6 +121,7 @@ pub struct ClipboardNonFile {
pub height: i32,
// message.proto: ClipboardFormat
pub format: i32,
+ pub special_name: String,
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
diff --git a/src/server/clipboard_service.rs b/src/server/clipboard_service.rs
index 55ebbc2f2..3aadb3ad5 100644
--- a/src/server/clipboard_service.rs
+++ b/src/server/clipboard_service.rs
@@ -117,6 +117,7 @@ impl Handler {
format: ClipboardFormat::from_i32(c.format)
.unwrap_or(ClipboardFormat::Text)
.into(),
+ special_name: c.special_name,
..Default::default()
})
.collect(),
diff --git a/src/ui_cm_interface.rs b/src/ui_cm_interface.rs
index 549798a51..c34e15e26 100644
--- a/src/ui_cm_interface.rs
+++ b/src/ui_cm_interface.rs
@@ -512,6 +512,7 @@ impl<T: InvokeUiCM> IpcTaskRunner<T> {
width: c.width,
height: c.height,
format: c.format.value(),
+ special_name: c.special_name,
});
}
allow_err!(self.stream.send(&Data::ClipboardNonFile(Some(("".to_owned(), main_data)))).await);