Skip to main content

xdg_cache_home

Function xdg_cache_home 

Source
pub fn xdg_cache_home() -> PathBuf
Expand description

Get XDG cache home directory.

Returns $XDG_CACHE_HOME or falls back to ~/.cache.

Embedders use this to compose their own cache paths:

use kaish_kernel::paths::xdg_cache_home;

let myapp_cache = xdg_cache_home().join("myapp");