mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-15 20:19:05 +08:00
Enable reading ID from CLI
This commit is contained in:
parent
e4c1e9113a
commit
ed9e92fc2e
@ -221,6 +221,13 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
}
|
||||
}
|
||||
return None;
|
||||
} else if args[0] == "--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();
|
||||
|
Loading…
Reference in New Issue
Block a user