OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
wayland-compat low common DISPUTE

Fix 'Command "-disable-gpu" not found' from the Obsidian CLI on Omarchy

omarchyelectron
CORRECTED An auditor found the fix wrong or incomplete and rewrote it. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

Confirmed on this machine and on quattro: /usr/share/omarchy/config/obsidian/user-flags.conf contains -disable-gpu and --enable-wayland-ime, and ~/.config/obsidian/user-flags.conf is identical. /usr/bin/obsidian (obsidian 1.13.7-2) appends non-comment lines after app.asar and execs electron43. Chromium base/command_line.cc kSwitchPrefixes on POSIX is {"--", "-"}, as claimed. Issue 8538 is open and quotes the exact error. The defect: #9781 is an open issue, not a pull request (the GitHub API reports no pull_request), so "a fix proposed in #9781. Until it merges" describes something that does not exist. Fix text corrected to say so. Not exercised: running obsidian --version.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.

Symptom

Every Obsidian command-line call fails on a stock Omarchy install. obsidian --version prints Error: Command "-disable-gpu" not found. It may require a plugin to be enabled. The desktop app itself opens normally.

Cause

Omarchy seeds ~/.config/obsidian/user-flags.conf from /usr/share/omarchy/config/obsidian/user-flags.conf, which on 4.0.4 and on the current quattro branch contains -disable-gpu with one dash and --enable-wayland-ime. Arch's /usr/bin/obsidian wrapper appends every non-comment line of that file to the command after app.asar, so the stray token reaches Obsidian's own argument handling, which treats a single-dash word as a CLI command and fails to find it. Chromium itself accepts both -- and - as switch prefixes on Linux (kSwitchPrefixes in base/command_line.cc), so the GPU was most likely being disabled as intended. The harm is to Obsidian's CLI, not the renderer.

Fix

Correct the prefix in your copy:


sed -i 's/^-disable-gpu$/--disable-gpu/' ~/.config/obsidian/user-flags.conf
cat ~/.config/obsidian/user-flags.conf

The file should now read:


# Obsidian reads this file through the Arch package wrapper.
--disable-gpu
--enable-wayland-ime

If you would rather have GPU acceleration, delete the --disable-gpu line instead. Omarchy ships it disabled on purpose, so watch for rendering problems if you do.

This is reported upstream as omarchy#8538 and again in omarchy#9781. Both issues were open on 2026-10-05, and the quattro branch and 4.0.4 still ship the single-dash line, so a fresh install or a re-seeded config brings the typo back.

**Plain Arch** does not ship this file. It applies only where Omarchy created it.

Verify

obsidian --version prints a version instead of the error. grep -n disable-gpu ~/.config/obsidian/user-flags.conf shows --disable-gpu or nothing.

Sources

obsidian-cli-fails-single-dash-disable-gpu