linux

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform struct {
	*linuxbase.Base
	// contains filtered or unexported fields
}

Platform implements the generic Linux platform. This is the reference implementation for Linux-family platforms with full launcher support including Kodi, Steam, Lutris, and Heroic.

func NewPlatform added in v2.8.0

func NewPlatform() *Platform

NewPlatform creates a new Linux platform instance.

func (*Platform) LaunchMedia

func (p *Platform) LaunchMedia(
	cfg *config.Instance,
	path string,
	launcher *platforms.Launcher,
	db *database.Database,
	opts *platforms.LaunchOptions,
) error

LaunchMedia launches media using the appropriate launcher.

func (*Platform) Launchers

func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher

Launchers returns the available launchers for Linux. Linux supports the full set of launchers: Kodi (8 types), Steam, Lutris, Heroic, WebBrowser, and Generic scripts.

func (*Platform) ReturnToMenu added in v2.7.0

func (p *Platform) ReturnToMenu() error

ReturnToMenu stops the active media on desktop Linux. Desktop Linux has no menu concept, so this just stops any running game/media.

func (*Platform) Settings

func (*Platform) Settings() platforms.Settings

Settings returns XDG-based settings for Linux.

func (*Platform) StartPost

func (p *Platform) StartPost(
	cfg *config.Instance,
	launcherManager platforms.LauncherContextManager,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
	db *database.Database,
) error

StartPost initializes the platform after service startup. Starts the Steam tracker if Steam is installed.

func (*Platform) Stop

func (p *Platform) Stop() error

Stop stops the platform and cleans up resources.

func (*Platform) SupportedReaders

func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader

SupportedReaders returns the list of enabled readers for Linux.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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