This results in an error as Windows says it cannot find C:\Program. This seems to be caused by the same issue that was addressed for file paths in #53.
A simple fix would be to call the same wrap_into_quotes on app. I just tested this fix in a fork and it works; let me know if you'd like me to open a PR.
Let's attempt to open a file
C:\file.jpg
using the programC:\Program Files\Google\Chrome\Application\chrome.exe
.This results in an error as Windows says it cannot find
C:\Program
. This seems to be caused by the same issue that was addressed for file paths in #53.https://github.com/Byron/open-rs/blob/a33caba441354a14bd55a16ad4a5e8bc793819f0/src/windows.rs#L25-L26
A simple fix would be to call the same
wrap_into_quotes
onapp
. I just tested this fix in a fork and it works; let me know if you'd like me to open a PR.This issue was originally discovered here: https://github.com/typst/typst/issues/2724