systray

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quit added in v2.17.0

func Quit()

Quit ends the tray's event loop, which lets Run return. It is safe to call from another goroutine and does nothing if the tray has already quit.

func Run

func Run(
	cfg *config.Instance,
	pl platforms.Platform,
	icon []byte,
	notify func(string),
	exit func(),
)

Run shows the tray icon and does not return until the tray quits, because the native event loop it starts owns the calling thread. Anything that has to react to the service ending has to watch for it on another goroutine and call Quit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL