writableIconsPath

Writable base icon path. Depends on XDG_DATA_HOME, so this is $HOME/.local/share/icons rather than $HOME/.icons

This function is Freedesktop only. Note: it does not check if returned path exists and appears to be directory.

@safe nothrow
static if(isFreedesktop)
string
writableIconsPath
()

Examples

auto dataHomeGuard = EnvGuard("XDG_DATA_HOME", "/home/user/data");
assert(writableIconsPath() == "/home/user/data/icons");

Meta