translate rustdesk

This commit is contained in:
rustdesk
2024-02-25 15:06:55 +08:00
parent a28c9f8f36
commit 4c8c2aa323
2 changed files with 10 additions and 0 deletions

View File

@@ -984,6 +984,11 @@ pub fn get_app_name() -> String {
hbb_common::config::APP_NAME.read().unwrap().clone()
}
#[inline]
pub fn is_rustdesk() -> bool {
hbb_common::config::APP_NAME.read().unwrap().eq("RustDesk")
}
#[inline]
pub fn get_uri_prefix() -> String {
format!("{}://", get_app_name().to_lowercase())