mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refact: win, virtual display (#7767)
* refact: win, virtual display Signed-off-by: fufesou <shuanglongchen@yeah.net> * Update flutter-build.yml --------- Signed-off-by: fufesou <shuanglongchen@yeah.net> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
@@ -215,7 +215,9 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
} else if args[0] == "--install-idd" {
|
||||
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
||||
if crate::virtual_display_manager::is_virtual_display_supported() {
|
||||
hbb_common::allow_err!(crate::virtual_display_manager::install_update_driver());
|
||||
hbb_common::allow_err!(
|
||||
crate::virtual_display_manager::rustdesk_idd::install_update_driver()
|
||||
);
|
||||
}
|
||||
return None;
|
||||
} else if args[0] == "--portable-service" {
|
||||
@@ -254,7 +256,7 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
} else if args[0] == "--server" {
|
||||
log::info!("start --server with user {}", crate::username());
|
||||
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
||||
crate::privacy_mode::restore_reg_connectivity();
|
||||
crate::privacy_mode::restore_reg_connectivity(true);
|
||||
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||
{
|
||||
crate::start_server(true);
|
||||
|
||||
Reference in New Issue
Block a user