Small suggestion: zathura close action in l-pdfview.lua (Linux)

Eduardo Bohoyo Díaz via ntg-context <[email protected]> Sat, 6 Jun 2026 09:27:21 +0200
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Hi Hans,

First, thank you for the SciTE + ConTeXt setup. I use it daily on Linux 
to write books, and it works beautifully.

I would like to share one small observation about the PDF viewer methods 
in l-pdfview.lua. On Linux, the close action for the zathura method is 
set to `killall zathura`, while evince and mupdf use `false`. Because 
zathura reloads the PDF automatically when the file changes (just like 
evince and mupdf), it does not really need a close-and-reopen step. The 
`killall` also closes every zathura window the user has open, not only 
the document being compiled.

Would it be possible to set the zathura close call to `false`, so it 
matches evince and mupdf? That single change would make 
`--autopdf=zathura` safe and comfortable on Linux.

In the meantime, in case it helps other Linux users, this is the 
workaround I use: I simply do not let ConTeXt drive the viewer at all. 
In ~/.SciTEUser.properties, after importing scite-context, I override 
the flag to an empty value:

     name.flag.pdfopen=

This removes --autopdf from the SciTE compile command, so ConTeXt no 
longer opens or closes any viewer. I open zathura once myself, and 
because it reloads the PDF automatically on every compile, the preview 
stays up to date with no stacked windows and no killall involved. It is 
only a user-side workaround, not a replacement for the fix above.

I run exactly this configuration almost every day, so I am very happy to 
test any change you make and report back to this list.

Thank you for considering it, and, again, for all your work.

Best regards,
Eduardo Bohoyo

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________