wsl-open-proxy
wsl-open-proxy is a Windows application that can be registered
as default application handlers in WSL environments.
It launches the application registered as a default application
in the Windows side.
Installation
Installation using Go
You need to have Go installed in your WSL environment up front.
$ go run github.com/qnighy/wsl-open-proxy/cmd/setup-wsl-open@latest
To configure the proxy for other filetypes than HTML, do for example:
$ go run github.com/qnighy/wsl-open-proxy/cmd/setup-wsl-open@latest -t image
Installing a prebuilt executable
Download the prebuilt setup command setup-wsl-open
from
the Releases page.
$ ./setup-wsl-open
# Or, for configuring the proxy for other filetypes than HTML:
$ ./setup-wsl-open -t image
To be filled later
Development tips
When developing setup-wsl-open in Linux using VS Code, the following configuration might be useful:
// .vscode/settings.json
{
"go.toolsEnvVars": {
"GOOS": "windows"
}
}
Releasing
- Update version.go
- Tag the version using
v0.0.0
format
- Push the tag and wait for the automatic release to complete
License
Licensed under the MIT License.
wsl-open achieves the same purpose.