Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

remove virtual display, beccause it sometimes unable to install(with the exclamation) and there's an connecting bug

fufesou173984ffd446
diff --git a/src/server/video_service.rs b/src/server/video_service.rs
index 8800d3b23..e8f6f30c2 100644
--- a/src/server/video_service.rs
+++ b/src/server/video_service.rs
@@ -1016,16 +1016,16 @@ fn no_displays(displays: &Vec<Display>) -> bool {
#[cfg(all(windows, feature = "virtual_display_driver"))]
fn try_get_displays() -> ResultType<Vec<Display>> {
- 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<Display>) -> ResultType<(usize, usize, Display)> {