xilun / cbwin

Launch Windows programs from "Bash on Ubuntu on Windows" (WSL)
Other
327 stars 25 forks source link

Allow wstart to be invoked from a VolFS cwd #7

Closed xilun closed 8 years ago

xilun commented 8 years ago

Use either HOMEPATH or just the cwd of outbash.exe in this case. This is probably only useful for wstart, and not wrun/wcmd.

xilun commented 8 years ago

If I do it I guess I'll go for the cwd of outbash.exe

xilun commented 8 years ago

Or maybe mimic bash.exe and use %HOMEPATH% if one launches e.g. wcmd ~ command

xilun commented 8 years ago

hm, I forgot that the shell expands ~, so I'll use ':' as a replacement character... (because it is forbidden in windows filenames, and is a normal character for bash)

xilun commented 8 years ago

Commit d28286e does the trick.