Skip to content
/ geticon Public

A tiny cross-platform library to get app icons of other applications.

License

Notifications You must be signed in to change notification settings

fcjr/geticon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geticon

GoDoc Go Report Card

A tiny cross-plaform (macOS + windows) library to get app icons of other applications.

Installation

go get github.com/fcjr/geticon

Usage

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

Technical Details

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.