From 166f505aba8539803f2cd6a234fb323ba541145b Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Mon, 4 Nov 2024 08:01:39 -0800 Subject: [PATCH] fix(cli): handle spaces in bar config paths --- komorebic/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index c5bb63c4..42e1ad2a 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -2079,7 +2079,7 @@ if (!(Get-Process whkd -ErrorAction SilentlyContinue)) let mut config = StaticConfig::read(config)?; if let Some(display_bar_configurations) = &mut config.bar_configurations { for config_file_path in &mut *display_bar_configurations { - let script = r"Start-Process 'komorebi-bar' '--config CONFIGFILE' -WindowStyle hidden" + let script = r#"Start-Process 'komorebi-bar' '--config "CONFIGFILE"' -WindowStyle hidden"# .replace("CONFIGFILE", &config_file_path.to_string_lossy()); match powershell_script::run(&script) {