ktikz icon indicating copy to clipboard operation
ktikz copied to clipboard

tmp log file naming problem

Open ea42gh opened this issue 5 years ago • 7 comments

trying to run a simple example results in

[LaTeX] Error: run failed.
Command: pdflatex -halt-on-error -file-line-error -interaction nonstopmode -output-directory /tmp/ktikz-uoXhgU /tmp/ktikz-uoXhgU/temptikzcode.tex
[LaTeX] Warning: could not load LaTeX log file.
Log file: /tmp/ktikz-uoXhgU/temptikzcode.log

ls /tmp/ktikz-uoXhgU/ shows temptikzcode.pgf texput.log any quick fix? I guess I could wrap the call in a script and move the log file...

ea42gh avatar Mar 07 '20 02:03 ea42gh

I hit this too. My current (ugly) workaround is launching sudo ktikz from the terminal.

kaushikcfd avatar Apr 01 '20 21:04 kaushikcfd

That is strange. I got the files and they have correct owner and permissions.

I never saw this error. Could you please you run "ls -l" in the temporary directory.

jfmcarreira avatar Nov 25 '20 19:11 jfmcarreira

@jfmcarreira: ls -l in /tmp works fine. Some more info: Running Ubuntu 20.04, Kitkz 0.12

kaushikcfd avatar Nov 25 '20 21:11 kaushikcfd

I mean ls -l /tmp/ktikz-uoXhgU/ and post the result here, so I can see the permissions of the files created.

jfmcarreira avatar Nov 25 '20 21:11 jfmcarreira

For the log:

[LaTeX] Error: run failed.
Command: pdflatex -shell-escape -halt-on-error -file-line-error -interaction nonstopmode -output-directory /tmp/ktikz-JWownQ /tmp/ktikz-JWownQ/temptikzcode.tex
[LaTeX] Warning: could not load LaTeX log file.
Log file: /tmp/ktikz-JWownQ/temptikzcode.log
$ ls -l /tmp/ktikz-JWownQ/
total 8
-rw-rw-r-- 1 kaushikcfd kaushikcfd  68 Nov 25 15:59 temptikzcode.pgf
-rw-rw-r-- 1 kaushikcfd kaushikcfd 809 Nov 25 15:59 texput.log

kaushikcfd avatar Nov 25 '20 22:11 kaushikcfd

Apologies for necropost, but I get the same behavior. For some reason, the constructed commandline uses .tex extension but temp file is saved as .pgf (so, since TeX doesn't find input, it produces default log name texput.log). Issue title is a bit misleading but that seems to be case here as well...

spapadim avatar Jan 10 '23 21:01 spapadim

Answering my own question (after some digging through source code) with a workaround, in case anyone else encounters this: deleting text/x-pgf from the MimeType field of qtikz.desktop (so only text/x-tex remains) makes the problem go away.

FWIW, this is with qtikz DEB from the Ubuntu 20.04 official repos (0.12+ds1-3build1), running under Gnome; haven't tried ktikz.

spapadim avatar Jan 11 '23 13:01 spapadim