From 47e9b1fde767845af6a4b22b13b0cfb3cc903e79 Mon Sep 17 00:00:00 2001 From: citizen204 Date: Fri, 5 Jun 2026 22:50:54 +0930 Subject: [PATCH] docs(obsidian-cli): add platform setup notes for WSL and headless Linux - WSL: use Obsidian.com (Electron console stub) instead of Obsidian.exe, which silently drops stdout/stderr on WSL due to GUI subsystem mismatch - Headless Linux: set DISPLAY to Xvfb display before running commands, otherwise CLI fails with 'unable to find Obsidian' Closes #93, closes #62 --- skills/obsidian-cli/SKILL.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/skills/obsidian-cli/SKILL.md b/skills/obsidian-cli/SKILL.md index 0046c45..0fa18ee 100644 --- a/skills/obsidian-cli/SKILL.md +++ b/skills/obsidian-cli/SKILL.md @@ -7,6 +7,24 @@ description: Interact with Obsidian vaults using the Obsidian CLI to read, creat Use the `obsidian` CLI to interact with a running Obsidian instance. Requires Obsidian to be open. +## Platform setup + +> [!info] WSL / Windows +> When invoking from WSL, point your wrapper at `Obsidian.com` (the Electron console stub), not `Obsidian.exe`. The `.exe` is a GUI-subsystem binary and silently drops stdout/stderr, so subcommands appear to succeed but produce no output: +> +> ```bash +> # ~/bin/obsidian +> "/mnt/c/Program Files/Obsidian/Obsidian.com" "$@" +> ``` + +> [!info] Headless Linux +> On Linux without a display (servers, Docker, CI), run Obsidian under Xvfb and set `DISPLAY` to match: +> +> ```bash +> Xvfb :99 -screen 0 1024x768x24 & +> DISPLAY=:99 obsidian version +> ``` + ## Command reference Run `obsidian help` to see all available commands. This is always up to date. Full docs: https://help.obsidian.md/cli