Function resolve_desktop_entry

Source
pub fn resolve_desktop_entry(
    cache: &mut DesktopEntryCache,
    context: &DesktopLookupContext<'_>,
    options: &DesktopResolveOptions,
) -> DesktopEntry
Available on crate feature desktop and non-Windows only.
Expand description

Resolve a DesktopEntry for a running toplevel, applying heuristics over app_id, identifier, and title. Includes Proton/Wine handling: Proton can open games as steam_app_X (often steam_app_default), and Wine windows may use an .exe app_id. In those cases we match the localized name against the toplevel title and, for Proton default, restrict matches to entries with Game in Categories.