]> xn--ix-yja.es Git - alex.git/commitdiff
Document opening links in WSL
authorAlex <alex.corcoles@veecle.io>
Tue, 14 Jan 2025 12:48:26 +0000 (13:48 +0100)
committeralexpdp7 <alex@corcoles.net>
Tue, 14 Jan 2025 12:50:41 +0000 (12:50 +0000)
windows/wsl.md [new file with mode: 0644]

diff --git a/windows/wsl.md b/windows/wsl.md
new file mode 100644 (file)
index 0000000..7dd1b0a
--- /dev/null
@@ -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`.