appicon

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 8 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 appicon reads the icon of an agent's installed desktop app on this machine, so the window can picture the agent the way a launcher does, without shipping a logo.

Index

Constants

This section is empty.

Variables

View Source
var ErrNone = errors.New("no installed app icon")

ErrNone means none of the app's places holds an app with a readable icon.

Functions

func Find

func Find(apps map[string][]string, home string) (string, error)

Find returns the icon of the first installed app among apps (by GOOS, "~" the home folder) as a data URL, or ErrNone.

func Installed added in v0.4.0

func Installed(apps map[string][]string, home string) string

Installed is the first installed app among apps (by GOOS, "~" the home folder), or "".

func Name added in v0.4.0

func Name(apps map[string][]string) string

Name is the name people know an agent's desktop app by ("Claude" for Claude.app), from its macOS bundle's name; "" when it has none.

func PNGFromICNS

func PNGFromICNS(b []byte, want int) ([]byte, error)

PNGFromICNS picks the PNG in a macOS .icns file whose width is nearest to want (the smallest one at least that wide, else the widest).

Types

This section is empty.

Jump to

Keyboard shortcuts

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