minor tweaks

This commit is contained in:
2023-04-29 10:01:45 -07:00
parent e746963052
commit 913148a75a
5 changed files with 29 additions and 45 deletions

View File

@ -90,7 +90,7 @@ pub fn set_auto_launch(is_configured: bool) -> Result<(), SetupError> {
pub fn get_or_create_db_path() -> Result<PathBuf, DataDirError> {
if cfg!(debug_assertions) {
if cfg!(debug_assertions) && std::env::var("HOME").is_ok() {
return Ok(PathBuf::from("./creddy.db"));
}