-
Notifications
You must be signed in to change notification settings - Fork 655
Expand tilde using the current home path #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
For instance it might be C:\Users\anders on the host, but translated to /c/Users/anders path in the guest. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
99c4922
to
07719b7
Compare
I have a hard time making up my mind about this PR: At some level I feel that So for convenience is seems like a good place to stuff the mountpoint, but I feel it would be cleaner to set the field to the actual home directory (value of Now, I'm also not sure if Finally, there is one more spot that I think may need to use the adjusted Line 42 in 5825216
|
This would need some revisiting, if we want the default mounts to work:
This needs to be expanded to the (converted) host path, not the guest path. Should The refactoring points are valid, it is not really "localpath" util anymore. And it seems like a fair point, to not override the real HomeDir of the user. |
I'm not asking for the mounts to change. I was just recommending to create a separate function to return the mount point inside the VM of the home directory on the host. This is a different thing than the user's home directory inside the VM and has no relation with what I'm arguing that it was a bug that And then create a separate function to return the |
Note that the user can specify the mountpoint now, so the simplistic translation is not necessarily correct: mounts:
- location: "~"
mountPoint: /var/hosthome So the function will need to check the definitions from |
Sounds good to return the meaning of home dir (to match that of the user), and adjust the code. Originally I just though it was path ( |
For instance it might be
C:\Users\anders
on the host,but translated to
/c/Users/anders
path in the guest.