Skip to content

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

remove elevation/installation requirement for --get-id

rustdesk0f10a88b235d
diff --git a/src/core_main.rs b/src/core_main.rs
index 468ab56df..e91b55710 100644
--- a/src/core_main.rs
+++ b/src/core_main.rs
@@ -303,11 +303,7 @@ pub fn core_main() -> Option<Vec<String>> {
}
return None;
} else if args[0] == "--get-id" {
- if crate::platform::is_installed() && is_root() {
- println!("{}", crate::ipc::get_id());
- } else {
- println!("Installation and administrative privileges required!");
- }
+ println!("{}", crate::ipc::get_id());
return None;
} else if args[0] == "--set-id" {
if args.len() == 2 {