From c6146ac9585d65c00af9d954c11b23a240ef9c4c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 14 Jan 2025 13:48:26 +0100 Subject: [PATCH] Document opening links in WSL --- windows/wsl.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 windows/wsl.md 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`. -- 2.47.3