-
Notifications
You must be signed in to change notification settings - Fork 46
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
Implement wsl compatibility #56
Conversation
Thanks @Nachtalb, for adding to the platform support. My only question about this is - can |
There seems to be a "WSL_DISTRO_NAME" env var injected by WSL though it is not enforced and not available in every environment: IMHO checking for
|
Ah no it doesn't fix it. This would just be a implementation for wsl like the rest of the custom opener implementations. #57 is an entirely different problem, I just used the wsl as a case where the problem might occur. |
Ah, ok. I'll be keeping this PR on hold until I've figured out a good way to handle that, because otherwise we can't declare effective WSL compatibility. I'll be merging this PR right after I've figured out an answer. |
@Nachtalb, sorry about the delay here. I got WSL2 setup & running, and found that with
Ignore this 👆🏼. The fact that my WSL2 installation did not contain I've merged this PR locally. I'll be pushing to Github after I've made the changes for Consistent Behaviour, post which this PR would reflect as merged on Github. |
@Nachtalb, this is now merged, with the following additional changes:
I've tested it on a sandbox WSL setup, both with and without
|
Nice! I didn't know that.
I will do that once I am on my PC. |
The possible ways I found:
cmd /c start URL
==> https://github.com/cpbotha/xdg-open-wsl/blob/7d40d572d0274db4b668b5d42797ebd3d8e16885/xdg_open_wsl/xdg_open_wsl.py#L191powershell.exe Start URL
==> https://github.com/4U6U57/wsl-open/blob/6419bb63845acd0533f30bdc8258f8df5fbb25cb/wsl-open.sh#L18wsl-open
various tools that call themselves that act as a replacement forxdg-open
and may have more methods than the 2 above.