Skip to content

Commit ef54e15

Browse files
committed
👔 change config dir to XDG_CONFIG_HOME
1 parent cb52522 commit ef54e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl App {
5252
}
5353

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

5959
fs::create_dir_all(&conf_path)?;

0 commit comments

Comments
 (0)