Skip to content

Commit

Permalink
Fix Kstars DB path on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBlack85 committed Jan 24, 2023
1 parent f892167 commit 0d40c80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astromonitor"
version = "1.0.2"
version = "1.0.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ impl Paths {
folder_path: String::from(".local/share/astromonitor"),
logs_path: String::from("logs"),
home_path: dirs::home_dir().unwrap().as_path().display().to_string(),
#[cfg(target_os = "linux")]
db_path: String::from(".local/share/kstars/userdb.sqlite"),
#[cfg(target_os = "macos")]
db_path: String::from("Library/Application Support/kstars/userdb.sqlite"),
indi_conf_path: String::from(".indi/"),
}
}
Expand Down

0 comments on commit 0d40c80

Please sign in to comment.