New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compressed files can't be displayed #42
Comments
Thanks for reporting that. We will try to find a solution. @norbusan is it possible for you to check the reproducibility of this? |
@wtsnjp Hi, yes, this is the still the case, and in fact always was the case with texdoc. I had a patch back then, long time ago, to deal with compressed documents, but that is so outdated that it was probably removed some years ago. As an example here on Debian we do not compress .pdf files, but .ps files are compressed.
Due to the async working of xdg-open (or texdoc?) the temporary file already has disappeared due to the cleanup of texdoc before the viewer is actually started. This is actually documented in the
The problem is that Debian uses
) which is a cross-DE tool to open files depending on the desktop environment and user wishes. But it does return immediately, and thus the above warning hits in. I am not sure whether there is something we can do on the texdoc side to fix this, xdg-open should have a |
How about diff --git a/script/view.tlu b/script/view.tlu
index cc5027f43e53..a4d97b1b01f1 100644
--- a/script/view.tlu
+++ b/script/view.tlu
@@ -55,3 +55,3 @@ function view_file(filename)
- viewer_replacement = tmpfile .. '; ' .. config.rm_file .. ' ' ..
+ viewer_replacement = tmpfile .. '; sleep 10; ' .. config.rm_file .. ' ' ..
tmpfile .. '; ' .. config.rm_dir .. ' ' .. tmpdir Actually I cannot try this ad hoc solution because gzipped entries do not apper in my environment (texdoc ea51f9e & Debian 9.5). |
Sounds like a good idea. I'll try it in case I find a free second from my daughter during the long haul flight ;-) |
That works indeed, maybe 10sec is a bit long, but anyway ... nice idea. @wtsnjp what do you think? Should we include this one, or should I patch it into the Debian packages? |
Yes, sleeping for a few seconds is exactly what I was thinking. My question is how many secounds (maybe 1 or 2?) should we take, so if you can kindly test a bit on Debian, please let me know the number. I will shortly patch the code. Thanks. |
On my laptop 1s and 2s both were fine. So I guess I would be ok to use 2s to help older laptops. |
Thanks a lot for that report! |
https://bugs.debian.org/591781
A rather long standing issue, when using texdoc to display compressed files in GNOME/XFCE . texdoc opens the viewer window, but the to be displayed (temporary) file is already gone and can't be opened. The original submitter runs Debian testing (w/ texdoc 3.0) and XFCE and still sees the issue.
Please be so kind to have a look at the issue. Thanks!
The text was updated successfully, but these errors were encountered: