mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 11:11:04 +03:00
refact: file copy&paste, cross platform (no macOS) (#10671)
* feat: unix, file copy&paste Signed-off-by: fufesou <linlong1266@gmail.com> * refact: unix file c&p, check peer version Signed-off-by: fufesou <linlong1266@gmail.com> * Update pubspec.yaml --------- Signed-off-by: fufesou <linlong1266@gmail.com> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
@@ -106,7 +106,13 @@ pub fn new() -> ServerPtr {
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
{
|
||||
server.add_service(Box::new(display_service::new()));
|
||||
server.add_service(Box::new(clipboard_service::new()));
|
||||
server.add_service(Box::new(clipboard_service::new(
|
||||
clipboard_service::NAME.to_owned(),
|
||||
)));
|
||||
#[cfg(feature = "unix-file-copy-paste")]
|
||||
server.add_service(Box::new(clipboard_service::new(
|
||||
clipboard_service::FILE_NAME.to_owned(),
|
||||
)));
|
||||
}
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user