Skip to content
This repository was archived by the owner on Apr 5, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/imp/platform/macos.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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)
};
Expand Down