Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableAutostart ¶
func DisableAutostart() error
DisableAutostart removes the XDG autostart desktop entry.
func EnableAutostart ¶
func EnableAutostart() error
EnableAutostart creates an XDG autostart desktop entry.
func IsAutostartEnabled ¶
func IsAutostartEnabled() bool
IsAutostartEnabled checks if the autostart desktop entry exists.
func LoadToken ¶
func LoadToken() string
LoadToken returns the stored auth token from ~/.airstore/credentials.
func SaveConfig ¶
SaveConfig writes configuration to ~/.airstore/tray.yaml.
Types ¶
type Config ¶
type Config struct {
MountPoint string `yaml:"mountPoint"`
ConfigPath string `yaml:"configPath"`
GatewayAddr string `yaml:"gatewayAddr"`
AutoMount bool `yaml:"autoMount"`
Token string `yaml:"-"` // Runtime only, not persisted. Set via --token / AIRSTORE_TOKEN.
}
Config holds user-configurable settings for the tray app.
func LoadConfig ¶
func LoadConfig() Config
LoadConfig loads configuration from ~/.airstore/tray.yaml. Returns defaults if the file does not exist.
Click to show internal directories.
Click to hide internal directories.