Merge pull request #3473 from Onyx47/master

Enable reading ID from CLI
This commit is contained in:
RustDesk 2023-03-03 10:28:54 +08:00 committed by GitHub
commit c057b031d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,6 +227,13 @@ pub fn core_main() -> Option<Vec<String>> {
}
}
return None;
} else if args[0] == "--get-id" {
if crate::platform::is_root() {
println!("{}", crate::ipc::get_id());
} else {
println!("Permission denied!");
}
return None;
} else if args[0] == "--check-hwcodec-config" {
#[cfg(feature = "hwcodec")]
scrap::hwcodec::check_config();