tray

package
v0.1.147 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 14 Imported by: 0

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 ReadPID

func ReadPID() int

func Run

func Run(cfg Config) error

func SaveConfig

func SaveConfig(cfg Config) error

SaveConfig writes configuration to ~/.airstore/tray.yaml.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

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 DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

func LoadConfig

func LoadConfig() Config

LoadConfig loads configuration from ~/.airstore/tray.yaml. Returns defaults if the file does not exist.

Jump to

Keyboard shortcuts

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