pub fn userdata_dir() -> PathBufExpand description
Determines common user data directory used by veloren frontends.
The first specified in this list is used.
- The VELOREN_USERDATA runtime environment variable
- The VELOREN_USERDATA_STRATEGY compile time environment variable
- The CARGO_WORKSPACE_DIR/userdata compile time environment variable defined in .cargo/config.toml
§VELOREN_USERDATA_STRATEGY environment variable
Read during compilation and useful to set when compiling for distribution.
Available options are:
- “system” => system specific project data directory
- “executable” =>
<executable dir>/userdata
Note: case insensitive