1 2 3 4 5 6 7 8 9 10
use { anyhow::*, directories_next::ProjectDirs, }; /// return the instance of ProjectDirs holding the app specific paths pub fn app_dirs() -> Result<ProjectDirs> { ProjectDirs::from("org", "dystroy", "starry") .context("Unable to find app directories") }