Launch Obsidian using XDG_CURRENT_DESKTOP=dwm obsidian.
Try to open a PDF in the vault using “Open in default app”.
PDF opens up and Obsidian freezes.
Did you follow the troubleshooting guide? [Y/N]
Yes
Expected result
Obsidian should not freeze.
Actual result
Obisidan freezes and only becomes responsive after I close the PDF viewer.
Environment
SYSTEM INFO:
Obsidian version: v1.8.9
Installer version: v1.8.9
Operating system: #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 08:02:10 +0000 6.12.20-1-lts
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 4
1: Dataview v0.5.61
2: Footnote Shortcut v0.1.3
3: QuickAdd v1.8.1
4: Tag Wrangler v0.6.1
RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
I am sorry we only support KDE and GNOME, we dot not have the resources to check other desktop environments/managers. I believe there were other users who had problems with DWM in the past, you can try searching the forum and see if they found an answer.
Sure, but I use other Electron apps too (Discord etc.) and they do not have this issue. This is not related to dwm at all and you can reproduce it by launching Obsidian with the command I mentioned:
$ XDG_CURRENT_DESKTOP=<non-GNOME/KDE> obsidian
When the DE is not GNOME/KDE, Obsidian is probably falling back to xdg-open and it does so in a blocking way. I don’t see why Obsidian goes out of the way to enforce GNOME/KDE DE here; it should work OOTB without making those assumptions.