pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.02k stars 139 forks source link

[Patch] Fix: Reloading / Refreshing of symlinked document does not work #268

Open sebastinas opened 3 years ago

sebastinas commented 3 years ago

On GitLab by @toluschr on Apr 24, 2021, 17:40


Zathura has this neat feature, where it re-renders files when changed on disk. This does not work when the file is symlinked.

In this case, the file is linked to a fuse filesystem. My workdir looks like this:

document.pdf ⇒ /mnt/server/public/document.pdf
document.tex

Since I don't control the parameters to zathura myself (It is spawned by vimtex), I can't just do zathura $(realpath ...). \ I think it would be best to 'fix' this in the zathura repo.

I'm not farmiliar with the code though, so I'll just post a very simple patch I made here, and hope someone can comment on it. follow-symlinks.patch

sebastinas commented 1 year ago

On GitLab by @Dekedro on May 11, 2023, 17:25


Upstream discussion: https://gitlab.gnome.org/GNOME/glib/-/issues/144