Skip to content
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

WSL Shortcuts should use %LOCALAPPDATA% #60

Closed
MicahZoltu opened this issue Sep 16, 2017 · 3 comments
Closed

WSL Shortcuts should use %LOCALAPPDATA% #60

MicahZoltu opened this issue Sep 16, 2017 · 3 comments

Comments

@MicahZoltu
Copy link

The shortcuts created for launching Ubuntu in Mintty appear to have a hard-coded path rather than using the appropriate environment variable. In particular

--rootfs="C:\Users\micah\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState/rootfs"

should be

--rootfs="%LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState/rootfs"
@mintty
Copy link
Owner

mintty commented Sep 16, 2017

The target application itself and other parameters (configdir, working dir, icon) are installed thus.
I vaguely remember that this didn't work at this point for some reason. To be revisited, patches welcome.

@mintty
Copy link
Owner

mintty commented Oct 10, 2017

The rootfs is taken from the registry (lxss keys) where it is given in the resolved form, thus the format. Of course it could be substituted explicitly.
Anyway, the next release will not set --rootfs explicitly anymore, so the issue is obsolete.

@mintty
Copy link
Owner

mintty commented Oct 23, 2017

Released 1.8.0.

@mintty mintty closed this as completed Oct 23, 2017
dscho pushed a commit to dscho/mintty that referenced this issue Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants