pub async fn apps(input: &ComputerApps) -> Result<AppsResult, String>Expand description
Report running desktop applications, or the focused one.
With target: "all" (the default) the result is a point-in-time snapshot
in platform enumeration order; the entry actually holding the system
foreground is flagged.
With target: "focused" only the foreground application is resolved, plus
the element inside it holding keyboard focus — the cheap “where do my
keystrokes go?” check before computer_keyboard.
§Errors
Returns Err when the platform accessibility API is unreachable
(missing macOS Accessibility permission, no AT-SPI2 bus on Linux, …), or —
for target: "focused" — when no application holds the foreground within
the timeout (e.g. focus is on the shell or a lock screen).