Verified Commit 23ec7767 authored by jD91mZM2's avatar jD91mZM2

Fix compilation on redox

parent 2adc4efa
use AppDataType::*;
use common::*;
use std::env::home_dir;
use std::path::{Component, PathBuf};
use std::path::{Component, Path, PathBuf};
pub const USE_AUTHOR: bool = false;
pub fn get_app_dir(t: AppDataType) -> Result<PathBuf, AppDirsError> {
let dir_base: Result<PathBuf, AppDirsError> = if t.is_shared() {
Ok(Component::RootDir.as_ref().into())
Ok(Path::new(&Component::RootDir).into())
} else {
home_dir().ok_or_else(|| AppDirsError::NotSupported)
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment