Skip to main content

parse_cache

Function parse_cache 

Source
pub fn parse_cache(text: &str) -> BTreeMap<String, Vec<String>>
Expand description

mimeinfo.cache: which entries registered for each type.

This is registration, not choice — every application that says it can open PNGs is in here, which is why a chooser shows several and why the default is a separate question (see crate::defaults).

The file has the same shape as mimeapps.list — a [section] of type=one.desktop;two.desktop; lines — so it is read by the same scanner. They were two near-copies that disagreed about whether a repeated key replaces or accumulates, which is the disagreement CLAUDE.md’s rule about a last-one-wins format is about.