mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-10 11:13:57 +02:00
fix(cli): handle spaces in bar config paths
More PowerShell script username-with-spaces path handling shenanigans. re #1161
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user