Documentation
¶
Index ¶
- func AttachPowerFlowObserver(menu appkit.Menu, h cgo.Handle) unsafe.Pointer
- func IsLoginItemRegistered() bool
- func NewGUICommand(unixSocketPath string, groupID string) *cobra.Command
- func RegisterLoginItem() error
- func ReleasePowerFlowObserver(ptr unsafe.Pointer)
- func Run(unixSocketPath string)
- func UnregisterLoginItem() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachPowerFlowObserver ¶ added in v0.5.2
AttachPowerFlowObserver wires an Objective-C NSMenu notifications observer to a Go handle. It returns an opaque pointer retained on the ObjC side; call ReleasePowerFlowObserver to free.
func IsLoginItemRegistered ¶
func IsLoginItemRegistered() bool
IsLoginItemRegistered checks if the application is registered as a login item
func RegisterLoginItem ¶
func RegisterLoginItem() error
RegisterLoginItem registers the application to start at login using SMAppService
func ReleasePowerFlowObserver ¶ added in v0.5.2
func UnregisterLoginItem ¶
func UnregisterLoginItem() error
UnregisterLoginItem removes the application from login items
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.