Documentation
¶
Index ¶
- Constants
- func FindHeroicStoreCache(checkFlatpak bool) (string, bool)
- func FindLutrisDB(checkFlatpak bool) (string, bool)
- func FlatpakAppPath(appID string) string
- func FlatpakBasePath() string
- func HasFlatpakAppData(appID string) bool
- func IsFlatpakInstalled(appID string) bool
- func NewBottlesLauncher() platforms.Launcher
- func NewFaugusLauncher() platforms.Launcher
- func NewGenericLauncher() platforms.Launcher
- func NewHeroicLauncher(opts HeroicOptions) platforms.Launcher
- func NewLutrisLauncher(opts LutrisOptions) platforms.Launcher
- func NewMoonlightLauncher() platforms.Launcher
- func NewWebBrowserLauncher() platforms.Launcher
- func ScanHeroicGames(storeCacheDir string) ([]platforms.ScanResult, error)
- func ScanLutrisGames(dbPath string) ([]platforms.ScanResult, error)
- type HeroicOptions
- type LutrisOptions
Constants ¶
const ( FlatpakSteamID = "com.valvesoftware.Steam" FlatpakLutrisID = "net.lutris.Lutris" FlatpakHeroicID = "com.heroicgameslauncher.hgl" FlatpakBottlesID = "com.usebottles.bottles" FlatpakFaugusID = "io.github.Faugus.faugus-launcher" FlatpakMoonlightID = "com.moonlight_stream.Moonlight" )
Common Flatpak app IDs.
Variables ¶
This section is empty.
Functions ¶
func FindHeroicStoreCache ¶
FindHeroicStoreCache finds the Heroic store_cache directory. Checks native path first, then Flatpak path if enabled.
func FindLutrisDB ¶
FindLutrisDB finds the Lutris pga.db database file. Checks native path first, then Flatpak path if enabled.
func FlatpakAppPath ¶
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 ¶
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 ¶
IsFlatpakInstalled checks if a Flatpak application is installed by querying flatpak info.
func NewBottlesLauncher ¶ added in v2.17.0
NewBottlesLauncher creates a launcher for programs managed by Bottles.
func NewFaugusLauncher ¶ added in v2.17.0
NewFaugusLauncher creates a launcher for Faugus Launcher games.
func NewGenericLauncher ¶
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 NewMoonlightLauncher ¶ added in v2.17.0
NewMoonlightLauncher creates a launcher for bounded .moonlight target files. Targets may be JSON ({"host":"host","app":"app"}) or two lines containing host and app.
func NewWebBrowserLauncher ¶
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
// contains filtered or unexported fields
}
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
// contains filtered or unexported fields
}
LutrisOptions configures the Lutris launcher behavior.