From ea7add35631630b7fe718d970d189ee6ce1a33f0 Mon Sep 17 00:00:00 2001 From: James Sully Date: Fri, 9 May 2025 10:08:29 +1000 Subject: fix: don't try to create a default config at path that exists Currently this bug has no actual consequences, we just continue silently on AlreadyExists in main() (this line: https://github.com/YaLTeR/niri/blob/e9c6f08906143c3fec1ad1301d538bef4cbc1978/src/main.rs#L151). This commit just eliminates the redundant attempt. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3281d19b..018f8d3f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -355,7 +355,7 @@ fn config_path(cli_path: Option) -> (PathBuf, PathBuf, bool) { let system_path = system_config_path(); if let Some(path) = default_config_path() { if path.exists() { - return (path.clone(), path, true); + return (path.clone(), path, false); } if system_path.exists() { -- cgit