diff --git a/src/client.rs b/src/client.rs index 87660bfbc..9c27d98ff 100644 --- a/src/client.rs +++ b/src/client.rs @@ -47,15 +47,13 @@ pub use super::lang::*; pub mod file_trait; pub mod helper; pub mod io_loop; +use crate::video_service::{SCRAP_X11_REQUIRED, SCRAP_X11_REF_URL}; pub static SERVER_KEYBOARD_ENABLED: AtomicBool = AtomicBool::new(true); pub static SERVER_FILE_TRANSFER_ENABLED: AtomicBool = AtomicBool::new(true); pub static SERVER_CLIPBOARD_ENABLED: AtomicBool = AtomicBool::new(true); pub const MILLI1: Duration = Duration::from_millis(1); pub const SEC30: Duration = Duration::from_secs(30); -const SCRAP_X11_REQUIRED: &str = "x11 expected"; -const SCRAP_X11_REF_URL: &str = "https://rustdesk.com/docs/en/manual/linux/#x11-required"; - /// Client of the remote desktop. pub struct Client; diff --git a/src/server/video_service.rs b/src/server/video_service.rs index 4750ec05f..6d1235ed8 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -51,6 +51,8 @@ use virtual_display; pub const SCRAP_UBUNTU_HIGHER_REQUIRED: &str = "Wayland requires Ubuntu 21.04 or higher version."; pub const SCRAP_OTHER_VERSION_OR_X11_REQUIRED: &str = "Wayland requires higher version of linux distro. Please try X11 desktop or change your OS."; +pub const SCRAP_X11_REQUIRED: &str = "x11 expected"; +pub const SCRAP_X11_REF_URL: &str = "https://rustdesk.com/docs/en/manual/linux/#x11-required"; pub const NAME: &'static str = "video";