Skip to content

Commit

Permalink
👔 change config dir to XDG_CONFIG_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Nov 20, 2021
1 parent cb52522 commit ef54e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ impl App {
}

pub fn create_or_get_db_file() -> Result<FileDatabase, Box<dyn std::error::Error>> {
if let Some(home) = dirs::home_dir() {
let conf_path = home.join(".fast-ssh");
if let Some(home) = dirs::config_dir() {
let conf_path = home.join("FastSSH");
let db_path = conf_path.join("db.ron");

fs::create_dir_all(&conf_path)?;
Expand Down

0 comments on commit ef54e15

Please sign in to comment.