This library allows you to create a system tray icon.

Supported platforms are Linux under Xorg, GNOME and Ubuntu, macOS
and Windows.
