writableMimePath

Get writable path where shared MIME database is stored.

This function is Freedesktop only.

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

Return Value

Type: string

Writable MIME path for the current user ($HOME/.local/share/mime). Note: this function does not check if the path exist and appears to be directory.

Examples

auto dataHomeGuard = EnvGuard("XDG_DATA_HOME");

environment["XDG_DATA_HOME"] = "/home/user/data";

assert(writableMimePath() == "/home/user/data/mime");

Meta