Skip to main content

Crate picon

Crate picon 

Source
Expand description

§Picon

Crates Downloads Docs CI

Get process icons in a cross-platform way.

Supports Windows, Linux, macOS, and BSD-based systems.


[!WARNING]

The library is intended for use in Sniffnet, and this is the reason why icons are returned as Iced Handle objects.

Feel free to take inspiration from this library and adapt it to your needs, but be aware that it’s not designed to be used as a general-purpose crate.


§Acknowledgements

  • icon crate for simplifying icon retrieval on Linux and BSD-based systems
  • windows-icons crate for inspiring icon retrieval on Windows

Enums§

IconHandle
An Iced image or SVG handle of a process icon.

Constants§

IS_OS_SUPPORTED
Indicates whether the current operating system is supported by this library.

Functions§

get_icon
Returns the process icon given the path to an executable (Windows and mcOS) or its name (other platforms).