gui

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: GPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachPowerFlowObserver added in v0.5.2

func AttachPowerFlowObserver(menu appkit.Menu, h cgo.Handle) unsafe.Pointer

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 NewGUICommand

func NewGUICommand(unixSocketPath string, groupID string) *cobra.Command

func RegisterLoginItem

func RegisterLoginItem() error

RegisterLoginItem registers the application to start at login using SMAppService

func ReleasePowerFlowObserver added in v0.5.2

func ReleasePowerFlowObserver(ptr unsafe.Pointer)

func Run

func Run(unixSocketPath string)

func UnregisterLoginItem

func UnregisterLoginItem() error

UnregisterLoginItem removes the application from login items

Types

This section is empty.