Documentation
¶
Overview ¶
Package launchd installs ccswap's per-user LaunchAgent.
Index ¶
Constants ¶
const Label = "com.github.dudude-bit.ccswap"
Variables ¶
var ( Dir = "" Run = func(args ...string) ([]byte, error) { return exec.Command("/bin/launchctl", args...).CombinedOutput() } )
Dir is the LaunchAgents directory ("" = ~/Library/LaunchAgents); Run is the launchctl seam.
Functions ¶
func ProgramPath ¶
ProgramPath is the binary the installed LaunchAgent runs (ProgramArguments[0]).
func Refresh ¶ added in v0.2.0
Refresh rewrites the installed LaunchAgent as this version writes it when it runs bin, keeping its program, log and environment, and reports whether it did; a plist edited beyond that stays as it is. Nothing is loaded or stopped: launchd reads the file when the job is next bootstrapped, at a login or by ccswap daemon install.
Types ¶
This section is empty.