Revert "fix: linux, window, workaround, mint, mate (#10146)" (#10184)

This reverts commit bd0a33e467.
This commit is contained in:
RustDesk
2024-12-05 11:44:37 +09:00
committed by GitHub
parent f13ef48cec
commit fe4094777f
6 changed files with 17 additions and 161 deletions

View File

@@ -19,7 +19,6 @@ use hbb_common::allow_err;
use hbb_common::{
config::{self, LocalConfig, PeerConfig, PeerInfoSerde},
fs, lazy_static, log,
message_proto::Hash,
rendezvous_proto::ConnType,
ResultType,
};
@@ -2343,25 +2342,6 @@ pub fn main_audio_support_loopback() -> SyncReturn<bool> {
SyncReturn(is_surpport)
}
pub fn get_os_distro_info() -> SyncReturn<String> {
#[cfg(target_os = "linux")]
{
let distro = &hbb_common::platform::linux::DISTRO;
SyncReturn(
serde_json::to_string(&HashMap::from([
("name", distro.name.clone()),
("id", distro.id.clone()),
("version_id", distro.version_id.clone()),
]))
.unwrap_or_default(),
)
}
#[cfg(not(target_os = "linux"))]
{
SyncReturn("".to_owned())
}
}
#[cfg(target_os = "android")]
pub mod server_side {
use hbb_common::{config, log};