desktop

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package desktop posts a best-effort desktop notification through github.com/simtabi/go-notifykit, so a banner says "authama" with authama's icon instead of "Script Editor", and nothing reaches the screen under `go test` or in CI. Notify keeps its old contract: false means nothing was delivered.

Index

Constants

View Source
const AppID = "com.simtabi.authama"

AppID is the identifier macOS lists authama's notifications under (System Settings > Notifications), with ".notifier" appended by notifykit.

Variables

This section is empty.

Functions

func IconPNG added in v0.1.6

func IconPNG() []byte

IconPNG is the logo mark as a 1024px PNG, drawn once per process.

func NewNotifier added in v0.1.6

func NewNotifier() (*notifykit.Notifier, error)

NewNotifier returns the notifier every authama surface shares: the one-shot alert, `authama notify send|ping|doctor`, and the listener `authama serve` runs. AUTHAMA_NOTIFICATIONS=off turns it off, as it always has. go-notifykit reads its own switches too (the EnvPrefix below, then NOTIFYKIT_DESKTOP); they are documented in docs/tools/expiry.md rather than in envnames, which lists only what authama itself reads.

func Notify

func Notify(title, message string) bool

Notify posts a desktop notification. Returns true if it was delivered, or will be once the user answers macOS's first-run permission prompt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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