mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
remove elevation/installation requirement for --get-id
This commit is contained in:
1 parent
60049c8cc5
commit
0f10a88b23
1 file changed
+1
-5
+1
-5
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user