My vault contains books as PDFs that I open using the default app to edit and highlight. My default PDF viewer is sioyek and whenever I try to open the PDF using the default app, sioyek gets launched, however, I can’t do anything in the Obsidian window.
I have found a way to reproduce this. This seems to happen on setups without a desktop environment. For example, even on Fedora 38 (quickemu VM), there are no issues on GNOME, but if I install i3 on it, then I get the same issue.
@vanadium I’ve narrowed down the exact behaviour. This bug happens on setups where the XDG_CURRENT_DESKTOP variable is not set to GNOME.
To reproduce, launch Obsidian as follows:
$ XDG_CURRENT_DESKTOP=i3 obsidian
Opening any PDF in the system PDF viewer will block Obsidian now.
In contrast, things work fine if I do launch Obsidian as follows:
$ XDG_CURRENT_DESKTOP=GNOME obsidian
I don’t know why Obsidian changes the process spawning behaviour based on the DE. Because, by spoofing GNOME, Obsidian is working fine for me even with DWM on Arch Linux.
The fix should be to have the same behaviour as GNOME for other values of XDG_CURRENT_DESKTOP as well.
@UtkarshVerma, that is a way easier fix than mine! I didn’t even think about that being a possibility. I second that Obsidian should not alter the spawning behavior based on the DE. That is very unintuitive.