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

Confusion for Windows + WSL #102

Open
getify opened this issue Sep 10, 2020 · 2 comments
Open

Confusion for Windows + WSL #102

getify opened this issue Sep 10, 2020 · 2 comments

Comments

@getify
Copy link

getify commented Sep 10, 2020

I have windows 10 + WSL (v1). I just installed this tool and tried to use it on a file inside WSL... I was expecting it to move the file to my Recycle Bin. It didn't work, but then I realized it put the file (renamed) inside ~/.local/share/Trash/files/ (according to that linux spec I guess).

I now realize this wasn't going to work like I expected since the tool is running in a linux environment (WSL), not actual windows.

I'm not sure if there's any way to get this tool installed out in windows land and still be able to run it from inside WSL to do what I expected, but if that's possible it would be nice to add something about that to the documentation.

Alternately and minimally, it might be a good idea to point in the docs out that installing under WSL in Windows is actually installing in linux, and pointing out where deleted files will go. Could remove some future confusion I had for the last ~20 minutes.

@sindresorhus sindresorhus changed the title confusion for windows + wsl Confusion for Windows + WSL Sep 10, 2020
@sindresorhus
Copy link
Owner

I use neither Windows nor WSL, so I cannot help much with this I'm afraid. But I'm happy to add a note or add a workaround if anyone can come up with a good solution.

https://github.com/sindresorhus/is-wsl could be used to detect WSL.

@thasmo
Copy link

thasmo commented Aug 7, 2021

For anyone having troubles finding the deleted files when using this via WSL2; in my case the files were moved to /mnt/c/.Trash-1000 where 1000 is the UID of the linux user.

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

No branches or pull requests

3 participants