Documentation
¶
Overview ¶
Package desktop provides desktop integration functionality for the application.
Index ¶
- func FatalError(err error) int
- func InitIsDesktop()
- func IsAllowedAutoUpdate() bool
- func IsDesktop() bool
- func IsServerDockerized() bool
- func RevealInFileManager(path string)
- func SendNotification(title string, text string)
- func Start(exit chan int, faviconProvider FaviconProvider)
- type FaviconProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalError ¶ added in v0.15.0
func InitIsDesktop ¶ added in v0.30.1
func InitIsDesktop()
InitIsDesktop sets the value of isDesktop. Changed IsDesktop to be evaluated once at startup because if it is checked while there are open terminal sessions (such as the ffmpeg hardware encoding checks), it may return false.
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(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 ¶
Click to show internal directories.
Click to hide internal directories.