applications

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package applications provides an API for querying Desktop entries.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when an application is not found.
	ErrNotFound = errors.New(`application not found`)
)

Functions

This section is empty.

Types

type AppCache

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

AppCache holds an auto-updated list of Desktop application data.

func New

func New(log hclog.Logger) (*AppCache, error)

New instantiate a new AppCache.

func (*AppCache) Close

func (a *AppCache) Close() error

Close this instance.

func (*AppCache) Find

func (a *AppCache) Find(class string) *hyprpanelv1.AppInfo

Find an application by class.

func (*AppCache) Refresh

func (a *AppCache) Refresh() error

Refresh the cache.

Jump to

Keyboard shortcuts

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