Support for vaults in Windows Subsystem for Linux (WSL)

Just confirmed that Obsidian now works within WSL2 directories (thanks to Maztuto from Discord) since WSL2 has enabled native support for Linux GUI apps (X11 and Wayland)!

How To Get It To Work

Requirements

Install Obsidian inside WSL2.

I’ve gone ahead and installed the latest obsidian.deb package in the latest Ubuntu 22.04.3 LTS on WSL2, like so:

# Remember to update the URL for the latest version on https://obsidian.md/download.
wget https://github.com/obsidianmd/obsidian-releases/releases/download/v1.4.13/obsidian_1.4.13_amd64.deb
sudo apt-get install -y ./obsidian_1.4.13_amd64.deb

Confirm Installation

This automatically adds Obsidian (Ubuntu) to the Start Menu, in the following directory:

C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu

A restart of WSL2 may be required for the entry to update, via wsl --shutdown.

Additional Dependencies

In my case, Obsidian wouldn’t load until I installed a couple of dependencies, like so:

sudo apt-get update
sudo apt-get install -y libgbm1 libasound2

Run Obsidian

And that’s it!

Either select Obsidian from the Start Menu or type obsidian or /opt/Obsidian/obsidian to launch the all-familiar Obsidian GUI from within WSL2, and it just works.

2 Likes