Omniflux wrote:There is a downside to this on unix systems which by default use a shared temp directory; the directory and files will be owned by the first user to run luxconsole as a slave node. Other users can work around this by specifying another directory with -c, or we could use another default directory incorporating the username or userid (/tmp/luxrender-omniflux or /tmp/luxrender-1001).
A traditional method is to use the process id as part of the temporary directory name, however for this directory to function as a cache directory, the path must remain stable between instantiations.
cwichura wrote:I agree that a postfix should be used. Using username should be safe enough, though unix often uses the UID instead.
cwichura wrote:If you go the multi-level structure route, then you should probably change the command-line from 'cachedir' to something like 'tempdir'. Then you could also put a 'film' subdirectory in there, where the temporary server film file would be written to when the -W option is specified.
Lord Crc wrote:I thought about a way to make such a change somewhat backwards compatible.
At startup, we could see if the current working directory is the one where the executable lives (ie from args), and only change the working directory to the temp folder if it is. This should allow us to preserve scripts etc which relies on the old behavior.
Users browsing this forum: No registered users and 1 guest