mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -509,6 +509,7 @@ impl InvokeUiSession for FlutterHandler {
|
||||
("features", &features),
|
||||
("current_display", &pi.current_display.to_string()),
|
||||
("resolutions", &resolutions),
|
||||
("platform_additions": &pi.platform_additions),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -843,6 +843,16 @@ impl Connection {
|
||||
pi.hostname = DEVICE_NAME.lock().unwrap().clone();
|
||||
pi.platform = "Android".into();
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
pi.platform_additions = format!(r#"
|
||||
{{
|
||||
"is_wayland": {},
|
||||
}}
|
||||
"#, crate::platform::current_is_wayland());
|
||||
}
|
||||
|
||||
#[cfg(feature = "hwcodec")]
|
||||
{
|
||||
let (h264, h265) = scrap::codec::Encoder::supported_encoding();
|
||||
|
||||
Reference in New Issue
Block a user