desktop

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FatalError added in v0.15.0

func FatalError(err error) int

func IsAllowedAutoUpdate

func IsAllowedAutoUpdate() bool

IsAllowedAutoUpdate tries to determine if the stash binary was installed from a package manager or if touching the executable is otherwise a bad idea

func IsDesktop

func IsDesktop() bool

func IsServerDockerized

func IsServerDockerized() bool

func RevealInFileManager

func RevealInFileManager(path string)

func SendNotification

func SendNotification(title string, text string)

func Start

func Start(exit chan int, faviconProvider FaviconProvider)

Start starts the desktop icon process. It blocks until the process exits. MUST be run on the main goroutine or will have no effect on macOS

Types

type FaviconProvider

type FaviconProvider interface {
	GetFavicon() []byte
	GetFaviconPng() []byte
}

Jump to

Keyboard shortcuts

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