commit
d6cbcae08f
@ -49,6 +49,11 @@ pub const DST_STRIDE_RGBA: usize = 1;
|
||||
// the executable name of the portable version
|
||||
pub const PORTABLE_APPNAME_RUNTIME_ENV_KEY: &str = "RUSTDESK_APPNAME";
|
||||
|
||||
pub const PLATFORM_WINDOWS: &str = "Windows";
|
||||
pub const PLATFORM_LINUX: &str = "Linux";
|
||||
pub const PLATFORM_MACOS: &str = "Mac OS";
|
||||
pub const PLATFORM_ANDROID: &str = "Android";
|
||||
|
||||
pub mod input {
|
||||
pub const MOUSE_TYPE_MOVE: i32 = 0;
|
||||
pub const MOUSE_TYPE_DOWN: i32 = 1;
|
||||
|
@ -26,11 +26,6 @@ use hbb_common::{message_proto::CursorData, ResultType};
|
||||
#[cfg(not(any(target_os = "macos", target_os = "android", target_os = "ios")))]
|
||||
const SERVICE_INTERVAL: u64 = 300;
|
||||
|
||||
pub const PLATFORM_WINDOWS: &str = "Windows";
|
||||
pub const PLATFORM_LINUX: &str = "Linux";
|
||||
pub const PLATFORM_MACOS: &str = "Mac OS";
|
||||
pub const PLATFORM_ANDROID: &str = "Android";
|
||||
|
||||
pub fn is_xfce() -> bool {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
|
@ -412,7 +412,7 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
|
||||
pub fn get_path_sep(&self, is_remote: bool) -> &'static str {
|
||||
let p = self.get_platform(is_remote);
|
||||
if &p == crate::platform::PLATFORM_WINDOWS {
|
||||
if &p == crate::PLATFORM_WINDOWS {
|
||||
return "\\";
|
||||
} else {
|
||||
return "/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user