pub unsafe extern "C-unwind" fn LSCopyApplicationURLsForBundleIdentifier(
in_bundle_identifier: &CFString,
out_error: *mut *mut CFError,
) -> Option<CFRetained<CFArray>>LSInfo only.Expand description
Given a bundle identifier (such as com.apple.finder), find all URLs to the corresponding application.
Returns zero or more URLs to applications that have the specified bundle identifier.
Parameter inBundleIdentifier: The bundle identifier of interest, such as “com.apple.finder”. Must
not be NULL.
Parameter outError: On failure, set to a CFError describing the problem. If you are
not interested in this information, pass NULL. The caller is
responsible for releasing this object.
Returns: If any applications with the specified bundle identifier are found, their URLs are returned in a CFArray. If no application could be found, NULL is returned and outError (if not NULL) is populated with kLSApplicationNotFoundErr. In macOS 10.15 and later, the returned array is sorted with the first element containing the best available application with the specified bundle identifier. Prior to macOS 10.15, the order of elements in the array was undefined.
§Safety
out_error must be a valid pointer or null.