I want to get the Windows "host" user home directory from within bash, so my theoretical environment variable (or program)
echo $WINHOME
would output something like
/mnt/c/Users/dualed
Would this be somehow possible?
When I search for it, I only find results for the opposite (finding the LXSS user path from the host)
I have a fallback-idea of extracting it from $PATH
, as there are some predictable paths like those containing AppData
, but I'd prefer to keep it simple, if possible.
HOME
,PWD
,USER
, but they all refer to the Linux user, not the Windows "host" user.