Skip to content

Commit

Permalink
fix(cli): handle spaces in bar config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Nov 4, 2024
1 parent d55d356 commit 166f505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 166f505

Please sign in to comment.