pub unsafe extern "C-unwind" fn AXMakeProcessTrusted(
executable_path: &CFString,
) -> AXError👎Deprecated
Available on crate features
AXError and AXUIElement only.Expand description
Attempts to make the process represented by the specified path a trusted accessibility client.
Use this function to make a process a trusted accessibility client. Note: The caller must be running as
root
to successfully call this function. In addition, the caller should relaunch the process after this function returns successfully for the trusted status to take effect.
Parameter executablePath: The path to the executable of the process to make trusted.
Returns: An AXError that indicates success or failure.