Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFsnotifySupport ¶ added in v0.10.15
CheckFsnotifySupport checks if a path's filesystem supports fsnotify events reliably. Returns a warning message if on a problematic filesystem (9p, nfs, cifs, sshfs), or an empty string if fsnotify should work normally. This helps users understand why auto-reload might not work in WSL2 or network mounts.
func IsHeadless ¶ added in v1.5.4
func IsHeadless() bool
IsHeadless returns true when no graphical display is available. A graphical display requires DISPLAY (X11) or WAYLAND_DISPLAY to be set. SSH sessions (SSH_TTY set) are treated as headless even if DISPLAY is somehow forwarded, because the feedback flow should not attempt xdg-open across SSH X11 forwarding. Not cached — env vars may change within a session. Used by the feedback package to choose between browser and clipboard fallback.
func SupportsUnixSockets ¶
func SupportsUnixSockets() bool
SupportsUnixSockets returns true if the platform reliably supports Unix domain sockets