From: Alex Date: Tue, 14 Jan 2025 12:48:26 +0000 (+0100) Subject: Document opening links in WSL X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=c6146ac9585d65c00af9d954c11b23a240ef9c4c;p=alex.git Document opening links in WSL --- diff --git a/windows/wsl.md b/windows/wsl.md new file mode 100644 index 0000000..7dd1b0a --- /dev/null +++ b/windows/wsl.md @@ -0,0 +1,16 @@ +# WSL + +## Opening links in a Windows browser + +Create `~/.local/bin/x-www-browser` with the following content: + +``` +#!/bin/sh + +/mnt/c/Windows/explorer.exe "$@" +true # ignore exit code so xdg-open works correctly +``` + +Ensure that the file is executable. + +`xdg-open` uses `x-www-browser`.