Commit afebdfe
authored
fix: remove cmd.exe wrapper in run_binary to fix paths with spaces (#1280)
On Windows, when the executable path contains spaces (e.g. username
'John Doe'), cmd.exe /c strips quotes incorrectly causing the command
to fail with 'C:\Users\John' is not recognized as an internal or
external command.
This fix removes the unnecessary cmd.exe wrapper and calls the
executable directly via Command::new(), consistent with the pattern
used elsewhere in the codebase (system_ocr.rs, window.rs). The
CREATE_NO_WINDOW flag (0x08000000) is already set via creation_flags,
so the cmd.exe wrapper was redundant.
Closes #12791 parent 5b68d0f commit afebdfe
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
0 commit comments