Documentation
¶
Overview ¶
Package rules classifies desktop and compositor evidence.
Index ¶
- func Compositor(sig *domain.Signals) domain.CompositorInfo
- func Desktop(env *domain.Env) domain.DesktopInfo
- func Headless(waylandAvailable, x11Available bool) bool
- func IsCompositorProcess(name string) bool
- func Protocol(sessionType domain.SessionType, waylandAvailable, x11Available bool) domain.DisplayProtocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compositor ¶
func Compositor(sig *domain.Signals) domain.CompositorInfo
Compositor walks the detection ladder and returns the first answer it reaches, along with the method and confidence that produced it.
func Desktop ¶
func Desktop(env *domain.Env) domain.DesktopInfo
Desktop identifies the desktop environment from the XDG variables.
func IsCompositorProcess ¶
IsCompositorProcess reports whether a /proc comm value could name a compositor. The process scanner uses it to discard the several hundred uninteresting processes before paying to verify ownership of the rest.
func Protocol ¶
func Protocol( sessionType domain.SessionType, waylandAvailable, x11Available bool, ) domain.DisplayProtocol
Protocol reports which display protocol a client should actually use. A reachable server beats what $XDG_SESSION_TYPE claims, because a session type the client cannot connect to is of no use to it.
Types ¶
This section is empty.