cbwin
cbwin copied to clipboard
Added path resolution to support unsafe access to bash filesystem.
More detailed explanation:
- Added the environment variable: WSL_PATH to bash. This is declared when outbash launches bash. It contains the location of the bash environment, which is %LOCALAPPDATA%\lxss. If your bash environment is located elsewhere, the code will have to be changed and recompiled. A compile-time variable might be added in the future.
- The run commands now check if any argument is a path and replaces it with the absolute path if that's the case.
- This does not replace relative or absolute paths for any argument consisting of more than just a path.
I'm a little busy, I'll probably take a look this WE.