From 55f940d5d777338c4cf1cb9c8ad64bc4856d1fec Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 8 Feb 2022 13:07:59 +0900 Subject: [PATCH] Fix opposite usage of "enable_alternate_prefix" --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4fd86be..8bcfc26 100644 --- a/src/main.rs +++ b/src/main.rs @@ -287,9 +287,9 @@ fn main() -> Result<(), String> { let prefix_dir: String; if opt.enable_alternate_prefix { - prefix_dir = var("XDG_RUNTIME_DIR").map_err(|e| format!("{}", e))?; - } else { prefix_dir = opt.alternate_prefix_dir.clone(); + } else { + prefix_dir = var("XDG_RUNTIME_DIR").map_err(|e| format!("{}", e))?; } let mut send_total_path = PathBuf::new();