Skip to content

Commit

Permalink
fix(cli): handle spaces in bar config paths
Browse files Browse the repository at this point in the history
More PowerShell script username-with-spaces path handling shenanigans.

re #1161
  • Loading branch information
LGUG2Z committed Dec 7, 2024
1 parent 3781c8e commit f227bd0
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 @@ -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) {
Expand Down

0 comments on commit f227bd0

Please sign in to comment.