wslpath icon indicating copy to clipboard operation
wslpath copied to clipboard

/tmp/ doesn't convert correctly

Open pdcoxhead opened this issue 5 years ago • 0 comments

I found that the /tmp/ folder is actually in C:\Users\username\AppData\Local\lxss\rootfs\tmp\. I patched my wslpath with his on line 97

                $tempOutput = slashJoin(lxssPath(), "rootfs", "\\");
                $output = slashJoin($tempOutput, $path, "\\");

This is only a rough fix it needs some more thought but it did the trick when I needed it.

I needed this conversion for my git diff tool beyond compare 4 (bc3 in git). Cheers, other than what was needed in this patch it was very useful 👍

pdcoxhead avatar Jul 19 '18 11:07 pdcoxhead