library

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToShortcuts

func AddToShortcuts(shortcut *shortcuts.Shortcut, overwriteArtworks bool) error

Add program to the shortcuts list

func EnsureShortcut added in v0.0.13

func EnsureShortcut(shortcut *shortcuts.Shortcut) error

Ensure that shortcut has the correct settings

func GetShortcut added in v0.0.13

func GetShortcut(appID uint) *shortcuts.Shortcut

Retrieve runtime shortcut with given appID

func GetShortcuts

func GetShortcuts() []*shortcuts.Shortcut

Retrieve runtime shortcuts

func Load

func Load() error

Load data to runtime config

func RemoveFromShortcuts

func RemoveFromShortcuts(shortcut *shortcuts.Shortcut) error

Remove program from the shortcuts list

func Save

func Save() error

Save runtime state to files

Types

type Config

type Config struct {
	IsFlatpak               bool                  `json:"isFlatpak"`
	SteamPath               string                `json:"steamPath"`
	UserConfigPath          string                `json:"userConfigPath"`
	UserArtworksPath        string                `json:"userArtworksPath"`
	ControllerTemplatesPath string                `json:"controllerTemplatesPath"`
	Shortcuts               []*shortcuts.Shortcut `json:"shortcuts"`
}

Config struct

func GetConfig added in v0.0.13

func GetConfig() *Config

Retrieve runtime config

Jump to

Keyboard shortcuts

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