telar-platform-desktop 0.1.0

Desktop platform backend for Telar: winit event loop, system paths and OS color-scheme detection.
Documentation
use std::path::PathBuf;

use services_core::AppPathsProvider;

pub struct DesktopPathsProvider;

impl AppPathsProvider for DesktopPathsProvider {
    fn config_dir(&self) -> Option<PathBuf> {
        dirs::config_dir()
    }

    fn data_dir(&self) -> Option<PathBuf> {
        dirs::data_dir()
    }

    fn cache_dir(&self) -> Option<PathBuf> {
        dirs::cache_dir()
    }
}