mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 13:01:29 +03:00
remove elevation/installation requirement for --get-id
This commit is contained in:
@@ -303,11 +303,7 @@ pub fn core_main() -> Option<Vec<String>> {
|
|||||||
}
|
}
|
||||||
return None;
|
return None;
|
||||||
} else if args[0] == "--get-id" {
|
} else if args[0] == "--get-id" {
|
||||||
if crate::platform::is_installed() && is_root() {
|
println!("{}", crate::ipc::get_id());
|
||||||
println!("{}", crate::ipc::get_id());
|
|
||||||
} else {
|
|
||||||
println!("Installation and administrative privileges required!");
|
|
||||||
}
|
|
||||||
return None;
|
return None;
|
||||||
} else if args[0] == "--set-id" {
|
} else if args[0] == "--set-id" {
|
||||||
if args.len() == 2 {
|
if args.len() == 2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user