How to get full path names of all opened pdf files (in zathura) - like rofi does
0
votes
2
answers
318
views
I am trying to get the full path of every PDF that I have opened in the zathura viewer. I know it is possible, since with
rofi -show window
, I can see the full path.
I have tried running
ps -p $(pgrep zathura) -o command
however, that only displays part of the name, depending on where I was, when I opened the PDF.
It gets worse, when I use Vimtex, as in that case, it would display something like
zathura -x /usr/bin/nvim --headless -c "VimtexInverseSearch %{line} '%{input}'" --synctex-forward 224:1:/Path/to/part.tex main.pdf
where main.pdf need not be in the same place as part.tex (this happens if you use \include etc.).
Once gain, rofi does it right!
I could probably write a "convoluted" script that would search recursively in every parent directory of the part.tex file to find the main.pdf file...
Does anyone know how rofi does it?
Or more to the point, how I can do it?
-----------------------------------------------------------------------------------------
I am using
the X11 server
Arch Linux, 6.2.8-arch1-1
GNU bash, Version 5.1.16
Rofi Version: 1.7.5
Zathura version 0.5.2
Thanks all.
Asked by I.P
(221 rep)
Mar 30, 2023, 02:11 PM
Last activity: Mar 31, 2023, 12:15 PM
Last activity: Mar 31, 2023, 12:15 PM