From c7923393be03b08cf3325f39e985f3a47990b665 Mon Sep 17 00:00:00 2001 From: slowsage <84777606+slowsage@users.noreply.github.com> Date: Tue, 30 May 2023 03:07:02 -0400 Subject: [PATCH] fix: Write to correct config path when none exists. (#449) --- src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.rs b/src/config.rs index 587e3789..d4ee58e2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -531,6 +531,7 @@ impl ConfigFile { // If no config file exists, create a default one in the config directory if !res.0.exists() && res.1.is_empty() { + res.0 = possible_config_paths[0].clone(); debug!("No configuration exists"); write(&res.0, EXAMPLE_CONFIG).map_err(|e| { debug!(