pub fn state_dir_with( app: &str, env: impl Fn(&str) -> Option<String>, ) -> Option<PathBuf>
The application’s state directory, from the environment env gives (none: the variables it needs are missing).
env