ui

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SystrayIcon = "files/images/logo/notifiarr.png"

SystrayIcon is the icon in the system tray or task bar.

View Source
const ToastIcon = "files/images/logo/notifiarr.png"

ToastIcon is the icon in the menu bar.

Variables

This section is empty.

Functions

func CreateStartupLink() (bool, string, error)
func DeleteStartupLink() (string, error)

func Entry

func Entry(msg, val string) (string, bool, error)

Entry wraps dlgs.Entry.

func Error

func Error(msg string) (bool, error)

Error wraps dlgs.Error.

func GetPNG added in v0.8.1

func GetPNG() string

GetPNG purposely returns an empty string when there is no verified file. This is used to give the toast notification an icon. Do not throw errors if the icon is missing, it's nbd, just return empty "".

func HasGUI

func HasGUI() bool

HasGUI returns true on Linux if USEGUI env var is true.

func HasStartupLink() (string, bool)

func Info

func Info(msg string) (bool, error)

Info wraps dlgs.Info.

func OpenCmd

func OpenCmd(cmd ...string) error

OpenCmd opens anything.

func OpenFile

func OpenFile(filePath string) error

OpenFile open Config Files.

func OpenLog

func OpenLog(logFile string) error

OpenLog opens Log Files.

func OpenURL

func OpenURL(url string) error

OpenURL opens URL Links.

func Question

func Question(text string, defaultCancel bool) (bool, error)

Question wraps dlgs.Question.

func StartCmd

func StartCmd(command string, args ...string) error

StartCmd starts a command.

func Toast added in v0.8.1

func Toast(msg string, v ...interface{}) error

func Warning

func Warning(msg string) (bool, error)

Warning wraps dlgs.Warning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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