env

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package env provides environment variable management for rendering subsystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFlatpak added in v0.23.1

func IsFlatpak() bool

IsFlatpak returns true if the application is running inside a Flatpak sandbox. The Flatpak runtime provides all required libraries, so host pkg-config checks should be skipped when running in this environment.

func IsPacman added in v0.23.2

func IsPacman() bool

IsPacman returns true if the application was installed via pacman (including AUR). Packages managed by pacman should not self-update; use pacman/AUR helpers instead. Detection uses `pacman -Qo` to check if the binary is owned by a package.

Types

type HardwareSurveyor added in v0.23.0

type HardwareSurveyor struct {
	// contains filtered or unexported fields
}

HardwareSurveyor implements port.HardwareSurveyor for Linux systems. It is safe for concurrent use after creation.

func NewHardwareSurveyor added in v0.23.0

func NewHardwareSurveyor() *HardwareSurveyor

NewHardwareSurveyor creates a new hardware surveyor.

func (*HardwareSurveyor) Survey added in v0.23.0

Survey detects and returns hardware information. Results are cached after the first call. Safe for concurrent use.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager implements port.RenderingEnvManager for configuring environment variables for GStreamer, WebKit, and GTK/GSK.

func NewManager

func NewManager() *Manager

NewManager creates a new environment manager.

func (*Manager) ApplyEnvironment

func (m *Manager) ApplyEnvironment(ctx context.Context, settings port.RenderingEnvSettings) error

ApplyEnvironment sets all rendering environment variables. Must be called before GTK/WebKit initialization.

func (*Manager) DetectGPUVendor

func (m *Manager) DetectGPUVendor(ctx context.Context) port.GPUVendor

DetectGPUVendor identifies the primary GPU vendor from system info.

func (*Manager) GetAppliedVars

func (m *Manager) GetAppliedVars() map[string]string

GetAppliedVars returns a copy of applied environment variables.

Jump to

Keyboard shortcuts

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