Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

developer terminal on windows doesn't work #187

Open
anjannath opened this issue Mar 4, 2022 · 1 comment
Open

developer terminal on windows doesn't work #187

anjannath opened this issue Mar 4, 2022 · 1 comment

Comments

@anjannath
Copy link
Member

anjannath commented Mar 4, 2022

issue is related to the path to crc executable, since the msi installs crc in C:\Program Files\CodeReady Containers\crc.exe and it contains a space ' ' in the path, when we pass it as argument to powershell.exe -Command it causes an error and no suitable way to escape the path has been found.

Full command used to launch powershell instance and run crc podman-env is:

powershell.exe -NoExit -command "&'C:\Program Files\CodeReady Containers\crc.exe podman-env | Invoke-Expression'"

https://github.com/code-ready/tray-electron/blob/809bd3d97aeefebaca4a360e96a21ce2bf09c10b/src/main.ts#L468-L479

PR #181 did not fix it

@anjannath
Copy link
Member Author

since the msi adds the location of crc to path, we can just use crc instead of the absolute path

praveenkumar added a commit that referenced this issue Mar 4, 2022
Issue #187 use crc instead of absolute path to crc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant