fix file drag & drop by replacing /cygdrive with /mnt #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I am used to dragging and dropping files a lot. However, files on the disk should be dropped with names like
/mnt/c/pagefile.sys
instead of/cygdrive/c/pagefile.sys
.The most simple way is to
$ sudo ln -s /mnt /cygdrive
However, this requires a
sudo
and the change of the root content, whereas in my opinion, wsltty should not change the LXSS.Another simple soluton without changing the
newlib-cygwin
is to replace "/cygdrive" with "/mnt", as this patch does.Of course there is still a known issue: the installation folder of wsltty will still be recognized as "/". But usually users will not visit the installation directory of wsltty from the Linux subsystem. Therefore this simple patch is enough for the most cases.
Best regards