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 NewGenericLauncher() platforms.Launcher
- func NewHeroicLauncher(opts HeroicOptions) platforms.Launcher
- func NewLutrisLauncher(opts LutrisOptions) 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" )
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 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 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
}
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.