aboutsummaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorAlex <alex.corcoles@veecle.io>2025-01-14 13:48:26 +0100
committeralexpdp7 <alex@corcoles.net>2025-01-14 12:50:41 +0000
commitc6146ac9585d65c00af9d954c11b23a240ef9c4c (patch)
tree3b32c3f19162201e1e16ea74b0dfa88de192ac51 /windows
parent3f3ec6afae5b178b0d0feeeb698bcfde67b63a5c (diff)
Document opening links in WSL
Diffstat (limited to 'windows')
-rw-r--r--windows/wsl.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/windows/wsl.md b/windows/wsl.md
new file mode 100644
index 00000000..7dd1b0ab
--- /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`.