launchers

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlatpakSteamID  = "com.valvesoftware.Steam"
	FlatpakLutrisID = "net.lutris.Lutris"
	FlatpakHeroicID = "com.heroicgameslauncher.hgl"
)

Common Flatpak app IDs.

Variables

This section is empty.

Functions

func FindHeroicStoreCache

func FindHeroicStoreCache(checkFlatpak bool) (string, bool)

FindHeroicStoreCache finds the Heroic store_cache directory. Checks native path first, then Flatpak path if enabled.

func FindLutrisDB

func FindLutrisDB(checkFlatpak bool) (string, bool)

FindLutrisDB finds the Lutris pga.db database file. Checks native path first, then Flatpak path if enabled.

func FlatpakAppPath

func FlatpakAppPath(appID string) string

FlatpakAppPath returns the data path for a specific Flatpak app.

func FlatpakBasePath

func FlatpakBasePath() string

FlatpakBasePath returns the base path for Flatpak app data.

func HasFlatpakAppData

func HasFlatpakAppData(appID string) bool

HasFlatpakAppData checks if a Flatpak app has a data directory. Note: This directory is created when the app is first run, not when installed.

func IsFlatpakInstalled

func IsFlatpakInstalled(appID string) bool

IsFlatpakInstalled checks if a Flatpak application is installed by querying flatpak info.

func NewGenericLauncher

func NewGenericLauncher() platforms.Launcher

NewGenericLauncher creates a launcher for shell scripts (.sh files). The launched process is tracked for lifecycle management.

func NewHeroicLauncher

func NewHeroicLauncher(opts HeroicOptions) platforms.Launcher

NewHeroicLauncher creates a configurable Heroic Games Launcher.

func NewLutrisLauncher

func NewLutrisLauncher(opts LutrisOptions) platforms.Launcher

NewLutrisLauncher creates a configurable Lutris launcher.

func NewWebBrowserLauncher

func NewWebBrowserLauncher() platforms.Launcher

NewWebBrowserLauncher creates a launcher for opening URLs in the default browser.

func ScanHeroicGames

func ScanHeroicGames(storeCacheDir string) ([]platforms.ScanResult, error)

ScanHeroicGames scans Heroic Games Launcher library files for installed games.

func ScanLutrisGames

func ScanLutrisGames(dbPath string) ([]platforms.ScanResult, error)

ScanLutrisGames scans the Lutris pga.db SQLite database for installed games.

Types

type HeroicOptions

type HeroicOptions struct {
	// CheckFlatpak enables checking for Flatpak Heroic installation.
	// Flatpak path: ~/.var/app/com.heroicgameslauncher.hgl/
	CheckFlatpak bool
}

HeroicOptions configures the Heroic launcher behavior.

type LutrisOptions

type LutrisOptions struct {
	// CheckFlatpak enables checking for Flatpak Lutris installation.
	// Flatpak path: ~/.var/app/net.lutris.Lutris/
	CheckFlatpak bool
}

LutrisOptions configures the Lutris launcher behavior.

Jump to

Keyboard shortcuts

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