Sun Apr 16 00:16:14 CEST 2006

"Temporary" mess

There are several methods to create temporary files and directories in OpenOffice.org. Module sal has some functionality in osl/unx/tempfile.c (depends on TEMP, TMP and P_tmpdir) and module tools contains complete TempFile class. Despite of that, there are several other "independent" implementations of similar stuff...

And to complete the mess, some systems do not use TEMP or TMP, but TEMPDIR and define P_tmpdir to be "/var/tmp" but it is not deleted on system startup. And to make it even more complicated, authors of this operating system do not want you to hardcode "/tmp", but use some API to query for the path (and of course they do not return "/tmp" ;-).

I hope this temporary mess is only temporary.

Posted by Pavel | Permanent link | File under: OpenOffice.org, Mac OS X