app_data_dir_from_home

Function app_data_dir_from_home 

Source
fn app_data_dir_from_home(home: &Path) -> PathBuf
Expand description

When dirs::data_dir() is unavailable, resolve under the home directory — never use the process working directory. A cwd-based path changes with how the app is launched (Finder vs Terminal vs IDE), so prefs and DB would appear to “reset” every run.