mimeInfoCachePaths

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

This function is Freedesktop only.

@safe nothrow
static if(isFreedesktop)
string[]
mimeInfoCachePaths
()

Return Value

Type: string[]

Paths of mimeinfo.cache files in the system.

Examples

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"
]);

Meta