pub fn parse(contents: &str, home: &Path) -> UserDirs
Parses the contents of a user-dirs.dirs file. home is substituted for a leading $HOME in each value, matching how xdg-user-dirs itself writes the file.
user-dirs.dirs
home
$HOME
xdg-user-dirs