ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.71k stars 236 forks source link

Add Windows 10 WSL Support #157

Closed jamesst20 closed 5 years ago

jamesst20 commented 5 years ago

Hi,

It is currently possible from WSL to open a web browser in host (Windows 10). I was wondering if it could be supported by letter opener as well?

More info : https://superuser.com/questions/1262977/open-browser-in-host-system-from-windows-subsystem-for-linux/1266038

Currently in WSL, running "explorer.exe http://google.ca" from anywhere open the url in my default browser.

This : export BROWSER='/mnt/c/Windows/explorer.exe' only opens an Explorer window when an email is sent.

This : export BROWSER='/mnt/c/Program\ Files\ (x86)/Google/Chrome/Application/chrome.exe' opens a chrome window to file://mnt/c/Linux/SmartGit/securicheck/tmp/letter_opener/1540214727_835665_4904238/rich.html It works if I replace /mnt/c by C:/.

Thank you