From 173984ffd4466b0c68219b77afee015d275b5aa8 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 28 Aug 2023 10:44:24 +0800 Subject: [PATCH] remove virtual display, beccause it sometimes unable to install(with the exclamation) and there's an connecting bug Signed-off-by: fufesou --- src/server/video_service.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/server/video_service.rs b/src/server/video_service.rs index 8800d3b237c5..e8f6f30c24e3 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -1016,16 +1016,16 @@ fn no_displays(displays: &Vec) -> bool { #[cfg(all(windows, feature = "virtual_display_driver"))] fn try_get_displays() -> ResultType> { - let mut displays = Display::all()?; - if no_displays(&displays) { - log::debug!("no displays, create virtual display"); - if let Err(e) = virtual_display_manager::plug_in_headless() { - log::error!("plug in headless failed {}", e); - } else { - displays = Display::all()?; - } - } - Ok(displays) + // let mut displays = Display::all()?; + // if no_displays(&displays) { + // log::debug!("no displays, create virtual display"); + // if let Err(e) = virtual_display_manager::plug_in_headless() { + // log::error!("plug in headless failed {}", e); + // } else { + // displays = Display::all()?; + // } + // } + Ok( Display::all()?) } pub(super) fn get_current_display_2(mut all: Vec) -> ResultType<(usize, usize, Display)> {