desktop

package
v0.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HideExecShell

func HideExecShell(cmd *exec.Cmd)

Set a command to execute in the background, instead of spawning a shell window

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(shutdownHandler ShutdownHandler, faviconProvider FaviconProvider)

Types

type FaviconProvider

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

type ShutdownHandler

type ShutdownHandler interface {
	Shutdown(code int)
}

Jump to

Keyboard shortcuts

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