[RFC][PATCH] Using "lyx_tmpdir" magic constant

Stephan Witt st.witt at gmx.net
Mon Feb 17 09:05:01 UTC 2020


Hi all,

while trying to understand how temp directory management works
I’ve stumbled over the „lyx_tmpdir“ string constant use.

1. This magic name should be coded in filetools only.
For this I didn’t prepare a patch.

BTW: is the code in lyxSockets() of lyxclient ok?
There is a check for "lyx_tmpdir" + pid but I cannot see
how this match should happen.

2. The attached patch simplifies LyX::prepareExit()
IMO it’s safe and an improvement. Isn’t it?

Stephan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: prepareExit.patch
Type: application/octet-stream
Size: 1027 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200217/55152409/attachment.obj>


More information about the lyx-devel mailing list