Have Evince or Okular as a default PDF opening application
In Obsidian, right click on the PDF and open it in the default app
This makes Obsidian stop responding until the external application has been closed.
I’ve managed to circumvent this by creating a new desktop shortcut for evince with the -w flag added and setting it as my default. This change detaches the children process and releases Obsidian when the default app is used to open the PDF.
Expected result
I expected to be able to use both, Obsidian and Okular/Evince.
Actual result
I could only use the PDF reader, Obsidian was stuck until I quit the PDF viewer.
Environment
Operating system: Arch Linux, i3wm
Obsidian version: v0.12.19
Additional information
strace for obsidian shows this syscall if it’s of any use:
I have Ubuntu 20.04.3 LTS, Evince 3.36.10 and Obsidian v0.12.19 and I can not reproduce the error. I can open several PDF files from within Obsidian and both the PDF viewers and Obsidian keep on working as expected.
However, this doesn’t seem to be solved in the forum. The other poster in the link I shared claims that this behavior worked before, so maybe the problem was introduced in a newer version of Obsidian.
I’ve managed to solve it with a “hack”. I’ve created a dummy .desktop file that points to this wrapper script which runs the PDF viewer and detaches the process.
Dummy desktop file in ~/.local/share/applications: