Documentation ¶
Index ¶
- func FatalError(err error) int
- func IsAllowedAutoUpdate() bool
- func IsDesktop() bool
- func IsServerDockerized() bool
- func RevealInFileManager(path string)
- func SendNotification(title string, text string)
- func Start(shutdownHandler ShutdownHandler, faviconProvider FaviconProvider)
- type FaviconProvider
- type ShutdownHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalError ¶ added in v0.15.0
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 IsServerDockerized ¶
func IsServerDockerized() bool
func RevealInFileManager ¶
func RevealInFileManager(path string)
func SendNotification ¶
func Start ¶
func Start(shutdownHandler ShutdownHandler, 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 ShutdownHandler ¶
type ShutdownHandler interface {
Shutdown(code int)
}
Click to show internal directories.
Click to hide internal directories.