-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Unable to open local files in wsl #174
Comments
Having a similar problem here. I suspect it is due to this line: if (isWsl && options.app.startsWith('/mnt/')) { I played around with if (isWsl) { doesn't seem to fix it :(. |
A lot of changes have gone into WSL support. Is this still an issue? |
Yes, this is still an issue. Latest version installed, WSL2 Ubuntu 22.04 and I can not open local HTML files. Opening URL (like https://google.com) works fine. |
preview-email was updated to take a urlTransformer. This fixes it for me: urlTransform: (path: string) => `file://\\\\wsl.localhost/${process.env.WSL_DISTRO_NAME}${path}` |
What about this issue? I think is wrong for wsl2 for example because it is Linux If I edit code https://github.com/sindresorhus/open/blob/main/index.js#L150 to |
I'm using this library from
preview-email
library and it fails to open the generated html file on WSLI have found a partial solution but missing a code to differentiate between a Web URL or a filesystem path
The text was updated successfully, but these errors were encountered: