Help us shape the future of Go! Take the 2026 Go Developer Survey

tray

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelperPath added in v1.29.0

func HelperPath() string

HelperPath returns the lerd-tray binary installed alongside lerd, or "" when the running executable can't be located.

func MissingLibs added in v1.29.0

func MissingLibs(helper string) []string

MissingLibs returns the shared libraries the tray helper links that this host cannot resolve. lerd-tray needs libayatana-appindicator, which an immutable image cannot simply install: without the library the helper exits 127 on every start, so the unit is left restart-looping and the whole systemd user session reports "degraded". Detection is conservative — anything it cannot determine (unreadable binary, no ELF, no library index) reports nothing missing, so a working tray is never disabled by a failed probe.

func Run

func Run(mono bool) error

Run starts the system tray applet. Unless already running as a daemon (or under launchd), it re-execs itself detached from the terminal and returns immediately so the shell prompt is restored. When launched by launchd, XPC_SERVICE_NAME is set and we run foreground directly — launchd owns the process lifecycle.

func Unavailable added in v1.36.0

func Unavailable(helper string) string

Unavailable says why the tray helper cannot run here, or "" when it can: no helper beside this lerd (a local build installed on its own), or a shared library the host lacks.

Types

type Snapshot

type Snapshot = traymenu.Snapshot

The snapshot and its reader are shared with the menu lerd-ui serves on WSL.

Jump to

Keyboard shortcuts

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