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

Drag & Drop from File Explorer produces incorrect file paths #1501

Closed
acesnik opened this issue Dec 14, 2016 · 12 comments
Closed

Drag & Drop from File Explorer produces incorrect file paths #1501

acesnik opened this issue Dec 14, 2016 · 12 comments
Labels

Comments

@acesnik
Copy link

acesnik commented Dec 14, 2016

Dragging & dropping a file from Windows File Explorer into a Bash window produces the path formatted for Windows instead of Ubuntu.

Dragging the Desktop folder into a Bash window should produce the text /mnt/c/Users/acesnik/Desktop. Instead, it produces C:\Users\acesnik\Desktop.

  • Your Windows build number
    Edition: Windows 10 Pro
    Version: 1607
    OS Build: 14393.576
@jackchammons
Copy link
Contributor

We are investigating adding some form of path conversion in the future but currently this is expected behavior.

@justinormont
Copy link

justinormont commented Feb 16, 2017

I'd duplicate Cygwin's behavior. Cygwin will convert paths as needed.

@mkeskells
Copy link

I agree - duplicate cygwin behaviour

@MaxValue
Copy link

Pretty Please?

@aborruso
Copy link

aborruso commented Jun 6, 2018

It would be a great thing to have the same behaviour of cygwin

@TSlivede
Copy link

TSlivede commented Jun 7, 2018

I'd really like to see this implemented in Microsofts own conhost.exe, but for now one can use mintty together with wslbridge (and a link from /cygdrive to /mnt):

wslbridge drag and drop file

I did not test it, but it seems, that wsltty packages mintty and wslbridge into a single small installation...

@aborruso
Copy link

aborruso commented Jun 8, 2018

Hi @TSlivede it seems perfect. Thank you.

I will make a test and write a report here

@yiwiz-sai
Copy link

thanks @jackchammons , really hope to support this feature, it has been 2 years...

@therealkenc
Copy link
Collaborator

This issue was opened before creation of the console tracker, where it probably belongs. I'll leave it open here in the WSL github for another two years if that's what it takes, but WSL syscall emulation doesn't have the faintest that string being dropped into the Windows Console is a win32 formatted path. In the mean time, I just tried, and wsltty (which is mintty which is Windows Git bash which is Cygwin console) seems to work, as alluded above. wsltty works because the problem and solution is outside WSL.

@Biswa96
Copy link

Biswa96 commented Dec 19, 2018

which is mintty which is Windows Git bash which is Cygwin console

Some correction: "Mintty is the Cygwin Terminal emulator, also available for MSYS and Msys2."

@therealkenc
Copy link
Collaborator

🙄

@acesnik
Copy link
Author

acesnik commented Dec 19, 2018

Thanks for pointing out the console tracker, @therealkenc . I opened the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants