pub struct AppInfo {
pub id: Option<String>,
pub name: Option<String>,
pub icon: Option<AppIcon>,
}Expand description
The app’s id, name and icon, which the platform shows in its task switcher, dock or taskbar, and uses to match the app’s windows to it. Each platform takes what it has a place for, and a packaged app’s own (a macOS bundle’s, an MSIX package’s) wins over what’s set here.
Fields§
§id: Option<String>Reverse DNS, as org.example.Player: the Wayland app id and X11
class on Linux, which match the app’s .desktop file and its icon
in the theme; the AppUserModelID of an unpackaged Windows app. A
macOS app’s id is its bundle’s.
name: Option<String>The name people know it by: in the app menu’s About, Hide and Quit on macOS, after each window’s title on KDE, as GLib’s application name on GTK. Windows takes it from the executable or its shortcut.
icon: Option<AppIcon>Shown for the app on macOS (unless its bundle has an icon), on each window on Windows, and on KDE when the icon theme has none named after the id. GTK shows only the theme’s icon named after the id.