-
Notifications
You must be signed in to change notification settings - Fork 104
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
wsltty closes immediately when using a non-default mount path #91
Comments
First, try to get hold of any error message by adding |
So adding
Running |
|
Apparently wslbridge tries to convert the path to find its backend in %LOCALAPPDATA% (or actually /bin from the cygwin point of view), based on WSL default assumption. |
When running |
Apart from the startup problem, changing the mount point would actually also spoil the mintty path conversion, for Ctrl+click file opening and pathname pasting. Is the information also available in the registry? How does it look like in the wsl.conf file? |
If you want to try patching wslbridge, you'd need a Cygwin installation, with packages gcc-core and make, |
I'm happy to help contribute to this as not many are running the latest Windows builds. I shall get an instance of Cygwin installed again today and have a look at wslbridge in more detail. The
More details on the file in the link in the OP. I'm not sure if there is an 'official' way to obtain the root mount point in WSL, but if not, you could either parse the I mentioned this in the wslbridge issue, but it's worth mentioning here too that in the latest builds, there is a tool called |
It's best to acquire the information from the file (or registry, if available, if you could have a look) so mintty can set it up without starting another instance of WSL in advance. |
I can't see that there is anything in the registry after a quick search, but tbh, I'm not 100% sure where I'd be looking anyway. From the documentation, it sounds like the I think reading from the file is going to be the easiest solution here.. Is there a problem accessing the file in |
Is the "root" the mount point or the mount prefix? The examples show it always with trailing slash; if you drop that, like "/drive", will mounts be "/drive/c" or "/drivec"? |
Just tested this and it's a prefix. The trailing slash seems to make no difference to the resulting mount point. If a value of |
@mintty I was thinking about this today, and it occurred to me that any user that is willing to go through the effort of creating a config file in the WSL probably doesn't mind editing the wsltty config as well. So why not just add a setting to the config file which stores the root mount point. If this setting is absent then we just use the wsl defualt: |
Possible. But it's also fairly feasible to do that implicitly in mintty, I just haven't had the time to do it yet. |
Hey @mintty Now that the wslbridge issue is closed, what needs to be done here to close the wsltty issue? |
I need to find the time to check out the wslbridge update, integrate it, and adapt mintty to also consider the mount path for its drag-and-drop and click-open features. |
…h conversion for open/paste (mintty/wsltty#91)
Support for WSL mount point configuration is now available in mintty (for open/paste path conversion) and wsltty (building with the wslbridge 'wslpath' version). There will be a release soon. However, I'm not really comfortable with releasing with a branch version; maybe we can ask @rprichard to merge or even release it. |
The wslpath change is already merged into wslbridge master, but I haven't made a release containing it yet. |
Released 1.8.5 which supports WSL mount path configuration (both /etc/wsl.conf and /etc/fstab) when starting and with path name conversion (for click-open and drag-and-drop paste). |
@mintty Amazing. Thanks for the support. I'll give this a go first thing when I get home today. Just in time for the Windows 10 1803 release that includes the wslpath features |
Everything works as expected 👍 Thanks again |
In the latest Windows Insider Build 17093 there is a new WSL configuration file at
/etc/wsl.conf
. This file allows you (among other things) to specify the mount point for your windows drives (defaults to/mnt/
).My motivation for changing the mount point is that I want to use Docker via the WSL and this doesn't currently work because of an issue with volumes being mounted to the wrong location. Mounting your Windows drives to
/
via the/etc/wsl.conf
file solves this problem, but breaks wsltty.Once the mount point is changed, wsltty closes immediately when started. I wasn't sure if this was a wsltty or wslbridge issue, so I opened it here first.
Starting up the Ubuntu app works as expected.
The text was updated successfully, but these errors were encountered: