Egui::SystemPorts::UserDirs
Class methods
cache
User-specific non-essential cache: $XDG_CACHE_HOME (default ~/.cache) on Linux/BSD; ~/Library/Caches on macOS; %LOCALAPPDATA%\cache on Windows.
config
User-specific configuration: $XDG_CONFIG_HOME (default ~/.config) on Linux/BSD; ~/Library/Application Support on macOS; %APPDATA% (roaming) on Windows.
data
User-specific data: $XDG_DATA_HOME (default ~/.local/share) on Linux/BSD; ~/Library/Application Support on macOS; %LOCALAPPDATA% on Windows.
documents
Sourcedownloads
Sourcepictures
Sourceuser_dir(name : String) : String | Nil
A known/XDG user dir by its name ("DOCUMENTS", "DOWNLOADS",
"PICTURES", …), or nil when not available. Linux/BSD resolves
through xdg-user-dir; macOS maps to the fixed home subfolder
(only when it exists); Windows through SHGetKnownFolderPath.
Results are cached on Windows.