Function mimeInfoCachePaths

Find all known mimeinfo.cache files locations. Found paths are not checked for existence.

string[] mimeInfoCachePaths() nothrow @safe;

This function is Freedesktop only.

Returns

Paths of mimeinfo.cache files in the system.

Example

auto dataHomeGuard = EnvGuard("XDG_DATA_HOME", "/home/user/data");
auto dataDirsGuard = EnvGuard("XDG_DATA_DIRS", "/usr/local/data:/usr/data");

assert(mimeInfoCachePaths() == [
    "/home/user/data/applications/mimeinfo.cache",
    "/usr/local/data/applications/mimeinfo.cache", "/usr/data/applications/mimeinfo.cache"
]);
}