From f227bd0fefedc9797205dcce50c84fa757e5d2d9 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 6 Dec 2024 17:44:17 -0800 Subject: [PATCH] fix(cli): handle spaces in bar config paths More PowerShell script username-with-spaces path handling shenanigans. re #1161 --- 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 7e090f2d..84ee71da 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -2094,7 +2094,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) {