diff --git a/src/core_main.rs b/src/core_main.rs index d0ce9e0d1..bf6ef7aac 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -221,6 +221,13 @@ pub fn core_main() -> Option> { } } 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();