fn get_config_dir() -> Result<PathBuf> {
        BaseDirectories::with_prefix("leftwm")?
            .create_config_directory("")
            .map_err(Into::into)
    }
Retrieve the path to the config directory. Tries to create it if it does not exist.

# Errors

Will error if unable to open or create the config directory.
Could be caused by inadequate permissions.
leftwm-core/src/utils/child_process.rs