Function wsl_open_browser::open_browser[][src]

pub fn open_browser(arg_1: &str)
Expand description

Inside WSL2 opens a html file in the browser that is in Win10
The local file path is transformed between Linux and Win10 notation.
If the argument is a directory then add index.html
If the argument is . then use the current directory
If there is no file, and the name contains something similar to an url, then open page on internet