A tiny cross-plaform (macOS + windows) library to get app icons of other applications.
go get github.com/fcjr/geticon
import (
"github.com/fcjr/geticon"
)
// get icon of a running application by PID
icon, err := geticon.FromPid(pid) // returns an image.Image
// get icon of an application by path
icon, err := geticon.FromPath(path) // returns an image.Image
On mac the image.Image returned should always be tiff encoded.
On windows the image.Image returned will be the largest available image from the apps ico set. This can either be a PNG or a BMP.