//! Shared data directory for Fluorine Manager.
//!
//! All data lives under `~/.local/share/fluorine/`.
use std::path::PathBuf;
/// Returns the Fluorine data directory (`~/.local/share/fluorine`).
pub fn data_dir() -> PathBuf {
let home = std::env::var("HOME").unwrap_or_else(|_| "/tmp".to_string());
PathBuf::from(home).join(".local/share/fluorine")
}