Documentation
¶
Overview ¶
Package darwin calls the macOS libraries actnowkit needs (libSystem's notify(3), Foundation/AppKit through the Objective-C runtime, the Security framework) with purego: no cgo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppURLs ¶
AppURLs asks LaunchServices where apps with this bundle id are installed (NSWorkspace URLsForApplicationsWithBundleIdentifier:, macOS 12+).
func NotifyCancel ¶
NotifyCancel cancels registrations; the descriptor closes with the last.
func NotifyRegister ¶
NotifyRegister registers names on one file descriptor (created by the first registration) and returns it and the token of each name. Every delivery writes the token, a big-endian int32, to the descriptor.
Types ¶
type RunningApp ¶
RunningApp is a running process of an app.
func Running ¶
func Running(bundleID string) ([]RunningApp, error)
Running lists the running processes of a bundle id (NSRunningApplication runningApplicationsWithBundleIdentifier:).