Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use wslpath to find the backend program
If the wslpath command is in the PATH, then wslbridge relies on it to find the backend. If it's not in the PATH, then it falls back on its own X:\foo\bar ==> /mnt/x/foo/bar path conversion. I tested using the /etc/wsl.conf file here: https://blogs.msdn.microsoft.com/commandline/2018/02/07/automatically-configuring-wsl/ If the /windir directory didn't exist, then no /windir/c mount was created, and wslbridge failed with this error message: $ ./out/wslbridge wslbridge error: failed to start backend process note: backend error output: wslpath: C:\rprichard\proj\wslbridge\out\wslbridge-backend: No such file or directory If the directory does exist, then wslbridge finds the /windir/c/... backend path. Fixes #22
- Loading branch information